|
|
|
|
||||||
| comp.unix.shell Using and programming the Unix shell. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
I use ksh in Emacs mode under Solaris 9. It annoys me the way ksh
scrolls the input line instead of passing to the next terminal line when there is not enough room. It only happens in the Emacs mode. In vi mode the line wraps to the next line. In bash this feature can be enabled or disabled writing "set horizontal-scroll-mode On/Off" in .inputrc. Is there a similar setting for ksh? Thanks in advance. |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
2006-12-3, 13:22(-08), Manuel Gomez:
> I use ksh in Emacs mode under Solaris 9. It annoys me the way ksh > scrolls the input line instead of passing to the next terminal line > when there is not enough room. It only happens in the Emacs mode. In vi > mode the line wraps to the next line. > > In bash this feature can be enabled or disabled writing "set > horizontal-scroll-mode On/Off" in .inputrc. Is there a similar setting > for ksh? [...] If you're looking for a version of ksh with a better command line user interface, you may want to look at zsh. zsh has a ksh emulation mode. -- Stéphane |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
Stephane CHAZELAS ha escrito: > If you're looking for a version of ksh with a better command > line user interface, you may want to look at zsh. zsh has a ksh > emulation mode. > Thanks for the tip. I haven't used zsh yet, I'll give it a try. Although this does not solve my problems since I assume zsh is not installed by default in Solaris hosts and I cannot intall it in all the machines I use at work. I've customized ksh in other ways to fit my needs, such as using cursors to move through history, thus I still hope changing this horizontal scroll behaviour. |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
2006-12-3, 14:14(-08), Manuel Gomez:
> > Stephane CHAZELAS ha escrito: > >> If you're looking for a version of ksh with a better command >> line user interface, you may want to look at zsh. zsh has a ksh >> emulation mode. >> > > Thanks for the tip. I haven't used zsh yet, I'll give it a try. > Although this does not solve my problems since I assume zsh is not > installed by default in Solaris hosts and I cannot intall it in all the > machines I use at work. On Solaris, it's the same as for bash, you get zsh, but it's a 10 year old version, not very useful (should still be better than ksh though). You should be able to find precompiled packages of zsh for Solaris that you can instead on your home directory or in /var/tmp. > I've customized ksh in other ways to fit my needs, such as using > cursors to move through history, thus I still hope changing this > horizontal scroll behaviour. Good luck with ksh... -- Stéphane |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
Manuel Gomez wrote:
> I use ksh in Emacs mode under Solaris 9. It annoys me the way ksh > scrolls the input line instead of passing to the next terminal line > when there is not enough room. It only happens in the Emacs mode. In vi > mode the line wraps to the next line. > > In bash this feature can be enabled or disabled writing "set > horizontal-scroll-mode On/Off" in .inputrc. Is there a similar setting > for ksh? It annoys you? Why? I suspect that you are not using the word and sentence cursor motion capabilities to their fullest... ? Most such design decisions, noting that even ksh(1) devolved from the earliest days of [more or less] smart terminals (like the VT100) stem from the fact that character handling at left and right margins was quite problematic in their implementation. Ksh(1) probably wanted to avoid the issue, as well as potential scrolling issues -- no two terminals had the same scrollback buffer behavior. That's why termcap and terminfo have so many workarounds for specific terminals. Have you tried unasserting viraw? ("set +o viraw") (untested). (I do understand you are using [eg]macs mode, not vi mode). One may additionally download "ie" at the AT&T download website available through kornshell.com, which implements the ksh(1)-like CLE as a standalone "adverbial" executable that can be used with any tool that takes stdin. It is also much more configurable. =Brian |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
Stephane CHAZELAS wrote:
> 2006-12-3, 13:22(-08), Manuel Gomez: > > I use ksh in Emacs mode under Solaris 9. It annoys me the way ksh > > scrolls the input line instead of passing to the next terminal line > > when there is not enough room. It only happens in the Emacs mode. In vi > > mode the line wraps to the next line. > > > > In bash this feature can be enabled or disabled writing "set > > horizontal-scroll-mode On/Off" in .inputrc. Is there a similar setting > > for ksh? > [...] > > If you're looking for a version of ksh with a better command > line user interface, you may want to look at zsh. zsh has a ksh > emulation mode. And how usefull is "zsh"'s ksh emulation mode ? Last time I tested it it didn't pass even 5% of the ksh93 test suite. It may better be titled a "ksh-like emulation" since it is FAR away from being compatible to the korn shell. ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) roland.mainz@nrubsig.org \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 7950090 (;O/ \/ \O ![]() |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
Manuel Gomez wrote:
> > I use ksh in Emacs mode under Solaris 9. It annoys me the way ksh > scrolls the input line instead of passing to the next terminal line > when there is not enough room. It only happens in the Emacs mode. In vi > mode the line wraps to the next line. > > In bash this feature can be enabled or disabled writing "set > horizontal-scroll-mode On/Off" in .inputrc. Is there a similar setting > for ksh? Yes, get ksh93 from http://www.kornshell.com/ and use the "multiline" option, e.g. add "set -o multiline" to ~/.kshrc The ksh93 version which will be added in Solaris 11 (see http://www.opensolaris.org/os/projec...3-integration/) will have this option enabled by default in /etc/ksh.kshrc ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) roland.mainz@nrubsig.org \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 7950090 (;O/ \/ \O ![]() |
|
|
|
#8 |
|
Messages: n/a
Hébergeur: |
2006-12-11, 21:06(+01), Roland Mainz:
[...] >> If you're looking for a version of ksh with a better command >> line user interface, you may want to look at zsh. zsh has a ksh >> emulation mode. > > And how usefull is "zsh"'s ksh emulation mode ? Last time I tested it it > didn't pass even 5% of the ksh93 test suite. It may better be titled a > "ksh-like emulation" since it is FAR away from being compatible to the > korn shell. [...] zsh ksh emulation is a ksh88 emulation. It also has some features of ksh93 (and ksh93 borrowed some features from zsh) but it certainly isn't a ksh93 emulation. -- Stéphane |
|
![]() |
| Outils de la discussion | |
|
|