Обсуждение: shell environment control within psql
I'm on sun solaris 2.8 with postgres 7.2. I run bash, and use VT102 terminal emulation when I'm connected to this server. When I'm at the command line, I can use the backspace key, and the arrows. However, when I type "psql db" to get into the postgres shell.... none of these work. The arrow keys are especially frustrating... by not working, I mean: backspace: ^H left arrow: ^[[D right arrow:^[[C up arrow: ^[[A down arrow: ^[[B the delete key works, and ctrl+backspace works as a delete as well. but I'd really like that functionality. any thoughts? Myke
On Thursday 31 Oct 2002 5:26 pm, climbingboulder wrote: > I'm on sun solaris 2.8 with postgres 7.2. I run bash, and use VT102 > terminal emulation when I'm connected to this server. When I'm at the > command line, I can use the backspace key, and the arrows. However, > when I type "psql db" to get into the postgres shell.... none of these > work. The arrow keys are especially frustrating... Is "readline" support compiled into your version of PG? I think you need the GNU readline libs which might need downloading for Solaris. Search the archives and docs for details. -- Richard Huxton