PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > comp.unix.shell > Disabling horizontal scrolling in ksh Emacs mode
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.unix.shell Using and programming the Unix shell.

Disabling horizontal scrolling in ksh Emacs mode

Réponse
 
LinkBack Outils de la discussion
Vieux 03/12/2006, 21h22   #1
Manuel Gomez
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Disabling horizontal scrolling in ksh Emacs mode

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.

  Réponse avec citation
Vieux 03/12/2006, 21h29   #2
Stephane CHAZELAS
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Disabling horizontal scrolling in ksh Emacs mode

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
  Réponse avec citation
Vieux 03/12/2006, 22h14   #3
Manuel Gomez
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Disabling horizontal scrolling in ksh Emacs mode


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.

  Réponse avec citation
Vieux 03/12/2006, 22h19   #4
Stephane CHAZELAS
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Disabling horizontal scrolling in ksh Emacs mode

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
  Réponse avec citation
Vieux 05/12/2006, 02h00   #5
bsh
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Disabling horizontal scrolling in ksh Emacs mode

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

  Réponse avec citation
Vieux 11/12/2006, 20h06   #6
Roland Mainz
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Disabling horizontal scrolling in ksh Emacs mode

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
  Réponse avec citation
Vieux 11/12/2006, 20h09   #7
Roland Mainz
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Disabling horizontal scrolling in ksh Emacs mode

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
  Réponse avec citation
Vieux 12/12/2006, 08h42   #8
Stephane CHAZELAS
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Disabling horizontal scrolling in ksh Emacs mode

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
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 07h07.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,12671 seconds with 16 queries