![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems . |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SunOS 5.10 - VI Arrow keys not working | ravashingravi | UNIX for Dummies Questions & Answers | 7 | 12-01-2008 11:22 AM |
| How to read arrow keys on really old bash? | simonb | Shell Programming and Scripting | 1 | 05-01-2006 10:27 AM |
| how do I get my arrow keys to work for looking thru my PREVIOUS UNIX COMMANDS | spotnis | UNIX for Dummies Questions & Answers | 11 | 09-14-2005 01:22 AM |
| arrow keys / special keys | raguramtgr | UNIX for Dummies Questions & Answers | 3 | 02-20-2004 02:45 AM |
| Trapping Arrow keys | nageshrc | Shell Programming and Scripting | 1 | 11-30-2001 03:36 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
|
|
||||
|
Using arrow keys
Hello,
I am unable to use the arrow keys in some applications. For example, in bash, I am able to use the arrow keys to to go back and forth characters in current line and search the history--I can do everything you'd expect to be able to do with the arrow keys. However, in bc, I cannot use the arrow keys. Instead I get "^[[A", "^[[B", etc. I get the same result in the python shell. I gnome-terminal, and I don't see any options to modify this behaviour. I get the same behaviour in dtterm and xterm. Any ideas? I'm using 5.10. Thanks. Last edited by cooldude; 06-04-2008 at 05:11 PM.. |
|
||||
|
I think I am:
$ bc -v bc 1.06 Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc. This is the same version that exists on a NetBSD box, and I am able to use the arrow keys. I've used Python on other platforms (Linux, NetBSD), and I am able to use the arrrow keys to back and forth through the history and current command. |
|
||||
|
Apparently the version of Python I have was not compiled with the readline library: A. Interactive Input Editing and History Substitution . My sysadmin isn't willing to recompile Python.
However, I can compile GNU bc locally. When I compile bc with the readline option, I get the following message: Code:
./configure --with-readline ... checking for readline in -lreadline... (cached) no Code:
ls *readline* libreadline.a libreadline.so libreadline.so.4 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|