Solved

Unixware 7.1.1 keymap

Posted on 2001-08-22
8
316 Views
Last Modified: 2013-12-16
My terminal charcters doesnt work correctly.

I get '[A$<200>' key when I try to use the 'arrow up' key (when I try to get the 'history').

I dont know what is the best shell for the Unixware (is it cshell or kshell?).

I get a strange prompt every line, (instead of getting the username only).

Thanks!

0
Comment
Question by:frida_harush
  • 3
  • 2
8 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6448646
> I get a strange prompt every line, (instead of getting the username only).

this sounds like you have set the PROMPT variable to something that your shell doesn't support.

Which shell do you use (echo $SHELL) ?
Which one do you prefer: csh, tcsh, ksh?
0
 

Author Comment

by:frida_harush
ID: 6448673
currently I work on cshell.
I read that it is prefered to work with ksh in SCO Unixware 7.1.1 is it correct?.
I used my Digital Unix .cshrc file and it didnt helped...
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6449885
csh is ok :-)
What's prefered on Unixware doesn't matter: this is UNIX, and so the user's choice .
Any .cshrc should work (some errors just may occour if it is a .cshrc designed for tcsh).
I assume that you have a variable setting for prompt in your .cshrc which causes the strange behaviour, please check.

In csh you cannot use up, down, etc. keys, except you manage to define an alias (woulod be hard).
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

Author Comment

by:frida_harush
ID: 6449912
I have UNIX (not UNIXWare) systems where all the keys work correctly (including the up and down keys).
I looked at "stty" command in Unix, but I didn't find any part about "up" and 'doun" keys.
is there a key mapping by "stty"?
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 100 total points
ID: 6450018
traditional (AT&T, Sun) csh does not support these keys. Dot. Probably you have a UNIX systems which uses tcsh as csh (symbolic link) like Linux.
You might map the keys using loadkeymap, would be hard :-(
0
 
LVL 3

Expert Comment

by:mrn060900
ID: 6698667
try setting

ksh
TERM=vt100;export TERM

then try the cursor keys...

or you could try using

h j k l .... the real mans cursor keys ;-)

Regards Mike
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now