Re: RDS! ed in FreeBSD

new topic     » goto parent     » topic index » view thread      » older message » newer message

You need to be especially careful of the TERM environment variable.  In
console mode on most Linux distros, TERM = linux; but in XWin, TERM =
xterm.  The OS uses the TERM variable to reference the /etc/termcap file
in older *nix's, and the terminfo database in newer flavors.  These
files map the scan codes from the keyboard into the key codes the
program sees.  That's why programs that use those keys will work
differently in different environments.   Try changing the TERM variable
for a session to see if you get better results.  If you do, adjust your
configuration files to make the change permanent.

HTH,
Mike

>>> euphoric at cklester.com 10/15/2003 10:10:54 PM >>>

Robert Craig wrote:

>
> C. K. Lester wrote:
>
>> When I try to run ed in FreeBSD, I can't seem to use my arrow keys.

>> They take me straight to the menu. What's up with that? :)
>
>
> On Linux or FreeBSD you'll find that some of the special
> keys don't work, or they produce a different key code
> than what ed is expecting. Each Linux/FreeBSD system
> seems to be a bit different, especially if you use Telnet.

Rob, here's a clue...

When I run it outside of X, I get no problems... Inside X, however... 
Also, inside X, the key program returns the right key codes, so what is

it about X that ed finds confusing and not key.ex?!

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu