![]() |
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 |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| cat vs head vs readline get variable from txt file | unclecameron | Shell Programming and Scripting | 5 | 04-16-2009 03:07 AM |
| Howto get readline to work in shellscript (stdin) | sentinel | UNIX for Dummies Questions & Answers | 3 | 09-15-2008 07:28 PM |
| awk problems | Junes | Shell Programming and Scripting | 1 | 11-07-2005 09:17 PM |
| gcc problems | AJA | SUN Solaris | 7 | 03-09-2004 10:44 AM |
| 'make' problems (compliation problems?) | xyyz | UNIX for Advanced & Expert Users | 5 | 11-05-2001 10:47 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Readline problems
I'm having problems with libreadline. When I write text longer than the current line, the text wraps back to the beginning of the line rather than to the next line. Also, when I use the arrow keys to edit something in that beginning part, it won't display at all (so I can edit only if I remember the order of the characters, most inconvenient).
It won't even work under xterm. Changing ROWS and LINES doesn't help. Upgrading to readline v. 6 didn't help, either. Using Ctrl+R to redraw didn't quite work as it should have; picture here: mersenneforum.org - View Single Post - Readline problems How can I fix this? |
|
||||
|
Code:
charles@zed:~$ stty -a speed 38400 baud; rows 24; columns 80; line = 0; intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = M-^?; eol2 = M-^?; swtch = M-^?; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0; -parenb -parodd cs8 hupcl -cstopb cread -clocal -crtscts -ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc ixany imaxbel iutf8 opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0 isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke charles@zed:~$ echo $TERM xterm |
| Bits Awarded / Charged to fpmurphy for this Post | |||
| Date | User | Comment | Amount |
| 07-07-2009 | CRGreathouse | Fixed my problem as well! | 1,000 |
| 06-23-2009 | drl | This "prompted" me to fix a problem withn my servers -- I like to use red, but then the history didn't always work correctly. | 1,000 |
|
||||
|
Quote:
I wasn't able to fix the escape sequences by adding \]: the program actually displays a ] and readline fails all the same. But if I remove the escape sequences entirely (giving up on bolding text and such) the editing works! Thanks a lot -- this is really going to make using this program much easier. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| libreadline, readline, redrawing, terminal |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|