The 'begin' and 'end' keys do not seem to work while I am typing a
command. The 'begin' key is supposed to take me to the beginning of
the command line and the 'end' key to the end of the command line
while I am typing a command. What shall I do to enable these? Thanks.
|
|
0
|
|
|
|
Reply
|
pinaki_m77 (96)
|
7/20/2009 8:15:42 PM |
|
googler wrote:
> The 'begin' and 'end' keys do not seem to work while I am typing a
> command. The 'begin' key is supposed to take me to the beginning of
> the command line and the 'end' key to the end of the command line
> while I am typing a command. What shall I do to enable these? Thanks.
as you describe is automatically enabled here...how did you break yours?
you might begin by naming what flavor and version of Linux you are
using...and, if you are running a DE or not, and what version....and,
that kinda stuff...
and, has it always been like that, or did it just start?
and, are we to assume a bash shell?
and, a real terminal, or a gnome-terminal, kde-terminal, x-terminal,
and that kinda stuff...
have you enabled any of the ease of access keyboard features?
was your keyboard correctly identified and put in your Xorg.conf?
by the way, i don't have a "begin" key what kinda keyboard are you using??
--
DenverD (Linux Counter 282315) via Thunderbird 3.0.1-1.1, KDE 3.5.7,
openSUSE Linux 10.3, 2.6.22.19-0.3-default #1 SMP i686 athlon
|
|
0
|
|
|
|
Reply
|
spam.trap9075 (46)
|
7/20/2009 8:56:31 PM
|
|
googler wrote:
> The 'begin' and 'end' keys do not seem to work while I am typing a
> command. The 'begin' key is supposed to take me to the beginning of
> the command line and the 'end' key to the end of the command line
> while I am typing a command. What shall I do to enable these? Thanks.
Assuming you're on a linux tty, you could customise the keymap.
This works for me:
keycode 102 = Home
keycode 107 = End
string Home = "\033[1~"
string End = "\033[4~"
Use showkey(1) to find the correct keycode for 'begin' and
'end' keys.
--
printf -v email $(echo \ 155 141 162 143 145 154 142 162 165 151 \
156 163 155 141 100 171 141 150 157 157 056 143 157 155|tr \ \\\\)
# Live every life as if it were your last! #
|
|
0
|
|
|
|
Reply
|
we-love-all-spam (43)
|
7/20/2009 9:28:07 PM
|
|
On Jul 20, 3:56=A0pm, DenverD <spam.t...@SOMEwhere.dk> wrote:
> googler wrote:
> > The 'begin' and 'end' keys do not seem to work while I am typing a
> > command. The 'begin' key is supposed to take me to the beginning of
> > the command line and the 'end' key to the end of the command line
> > while I am typing a command. What shall I do to enable these? Thanks.
>
> as you describe is automatically enabled here...how did you break yours?
>
We changed to new servers (OS installation different).
> you might begin by naming what flavor and version of Linux you are
> using...and, if you are running a DE or not, and what version....and,
> that kinda stuff...
>
"uname -a" gives
Linux lca5-403s 2.6.9-78.ELsmp #1 SMP Wed Jul 9 15:46:26 EDT 2008
x86_64 x86_64 x86_64 GNU/Linux
> and, has it always been like that, or did it just start?
>
As I said earlier, it started when we switched to a new set of
servers.
> and, are we to assume a bash shell?
>
tcsh
> and, a real terminal, or a gnome-terminal, kde-terminal, x-terminal,
> and that kinda stuff...
>
gnome
> have you enabled any of the ease of access keyboard features?
>
I haven't, but I don't know if there is any script that automatically
ran at start up that did such a thing.
> was your keyboard correctly identified and put in your Xorg.conf?
>
Yes, everything else works fine.
> by the way, i don't have a "begin" key what kinda keyboard are you using?=
?
>
Sorry.... by 'begin' key I actually meant the 'home' key. Being a
programmer in Verilog, I see too many 'begin' and 'end' all day :)
> --
> DenverD (Linux Counter 282315) via Thunderbird 3.0.1-1.1, KDE 3.5.7,
> openSUSE Linux 10.3, 2.6.22.19-0.3-default #1 SMP i686 athlon
|
|
0
|
|
|
|
Reply
|
pinaki_m77 (96)
|
7/21/2009 5:30:40 AM
|
|
On Jul 20, 4:28=A0pm, Marcel Bruinsma <we-love-all-s...@gmail.com>
wrote:
> googler wrote:
> > The 'begin' and 'end' keys do not seem to work while I am typing a
> > command. The 'begin' key is supposed to take me to the beginning of
> > the command line and the 'end' key to the end of the command line
> > while I am typing a command. What shall I do to enable these? Thanks.
>
> Assuming you're on a linux tty, you could customise the keymap.
> This works for me:
>
> keycode 102 =3D Home
> keycode 107 =3D End
> string Home =3D "\033[1~"
> string End =3D "\033[4~"
>
> Use showkey(1) to find the correct keycode for 'begin' and
> 'end' keys.
>
Thanks. Where shall I set this? In .tcshrc file (I'm using tcsh
shell)? What command should I be using?
BTW, what has happened to this newsgroup? I used to visit this group a
lot some 3-4 years ago and back then, the volume of emails was huge
(good posts, not spam). Now I see only spam and very few real posts.
Where did all the people go?
|
|
0
|
|
|
|
Reply
|
pinaki_m77 (96)
|
7/21/2009 5:39:16 AM
|
|
> BTW, what has happened to this newsgroup? I used to visit this group a
> lot some 3-4 years ago and back then, the volume of emails was huge
> (good posts, not spam). Now I see only spam and very few real posts.
> Where did all the people go?
fractionation/specialization?
many many folks streamed to the web (or nntp) based forums or the
mailing lists of their flavor of the day:
http://forums.opensuse.org
http://forums.novell.com
http://www.ubuntu.com/support/community/webforums
http://www.redhat.com/support/knowledgebase/forums/
http://forums.fedoraforum.org/
etc
etc
the list is nearly as endless as is the flavor-of-the-day list at
distrowatch.com <http://distrowatch.com/stats.php?section=popularity>
--
DenverD (Linux Counter 282315) via Thunderbird 3.0.1-1.1, KDE 3.5.7,
openSUSE Linux 10.3, 2.6.22.19-0.3-default #1 SMP i686 athlon
|
|
0
|
|
|
|
Reply
|
spam.trap9075 (46)
|
7/21/2009 6:13:16 AM
|
|
googler wrote:
>> Assuming you're on a linux tty, you could customise the keymap.
>> [...]
>
> Thanks. Where shall I set this?
My suggestion only works for a real terminal. You are using
a gnome-terminal (a terminal emulator in an X window). The
X keymap table can be changed with xmodmap(1). You
could try:
$ xmodmap -pke >xkeymap.orig
$ cp xkeymap.orig xkeymap.test
Then open xkeymap.test in an editor, and search for 'Home'
and 'End'. If these are missing you need to add them, for
example:
keycode 97 = Home
keycode 103 = End
will work for many PC keyboards. You can test by running
"xmodmap xkeymap.test", and if it doesn't work re-install
the original map. If it does work try "mv xkeymap.test
$HOME/.xmodmaprc", to activate the modified map
automatically when you log in.
--
printf -v email $(echo \ 155 141 162 143 145 154 142 162 165 151 \
156 163 155 141 100 171 141 150 157 157 056 143 157 155|tr \ \\\\)
# Live every life as if it were your last! #
|
|
0
|
|
|
|
Reply
|
we-love-all-spam (43)
|
7/21/2009 8:12:11 AM
|
|
> BTW, what has happened to this newsgroup? I used to visit this group a
> lot some 3-4 years ago and back then, the volume of emails was huge
> (good posts, not spam). Now I see only spam and very few real posts.
> Where did all the people go?
DenverD <spam.trap@somewhere.dk> wrote:
> fractionation/specialization?
I /like/ a general newsgroup that doesn't pick on flavours. And I dislike
web forums - or at least the interface that I have to use to get at them.
What's good for RedHat may be equally applicable to my Debian boxes. With
distro fragmentation people end up asking the same question over and
over again. Personally, I even tend to treat UNIX, Solaris, and Linux
as much of a muchness. I try to write my scripts in as generic a fashion
as possible. Am I just too "old school"?
Chris
|
|
0
|
|
|
|
Reply
|
chris-usenet (1109)
|
7/21/2009 10:40:30 PM
|
|
Someonw whom Chris Davies failed to credit writes:
> Now I see only spam and very few real posts.
You are using the wrong newsserver. With Newsguy I'm seeing more spam
recently (mostly from Google) but the real articles still outnumber the
spams.
--
John Hasler
john@dhh.gt.org
Dancing Horse Hill
Elmwood, WI USA
|
|
0
|
|
|
|
Reply
|
john4584 (1601)
|
7/21/2009 11:15:30 PM
|
|
Chris Davies <chris-usenet@roaima.co.uk> wrote:
>> BTW, what has happened to this newsgroup? I used to visit this group a
>> lot some 3-4 years ago and back then, the volume of emails was huge
>> (good posts, not spam). Now I see only spam and very few real posts.
>> Where did all the people go?
>
> DenverD <spam.trap@somewhere.dk> wrote:
>> fractionation/specialization?
>
> I /like/ a general newsgroup that doesn't pick on flavours. And I dislike
> web forums - or at least the interface that I have to use to get at them.
Right on. Web forums are pathetic attempts to emulate the NNTP protocol
with the HTTP protocol. God they STINK.
>
> What's good for RedHat may be equally applicable to my Debian boxes. With
> distro fragmentation people end up asking the same question over and
> over again. Personally, I even tend to treat UNIX, Solaris, and Linux
> as much of a muchness. I try to write my scripts in as generic a fashion
> as possible. Am I just too "old school"?
>
> Chris
Linux is linux if you use the commandline. Distro is just superficiality.
Sid
|
|
0
|
|
|
|
Reply
|
sidneylambe (322)
|
7/21/2009 11:20:14 PM
|
|
I demand that Sidney Lambe may or may not have written...
> Chris Davies <chris-usenet@roaima.co.uk> wrote:
[snip]
>> I /like/ a general newsgroup that doesn't pick on flavours. And I dislike
>> web forums - or at least the interface that I have to use to get at them.
> Right on. Web forums are pathetic attempts to emulate the NNTP protocol
> with the HTTP protocol. God they STINK.
They're... just about tolerable in the absence of an appropriate newsgroup or
mailing list, but only if the need is great.
"You have a private message! Click on this link to see it..." – ugh.
Horrible. Interferes with reading while offline (which I do fairly
regularly), but then that's the nature of a web forum: restrictive.
BTW, "protocol protocol"? :-)
--
| Darren Salt | linux at youmustbejoking | nr. Ashington, | Doon
| using Debian GNU/Linux | or ds ,demon,co,uk | Northumberland | Army
| + Travel less. Share transport more. PRODUCE LESS CARBON DIOXIDE.
"Bother", said Pooh, as the pin fell out of the grenade.
|
|
0
|
|
|
|
Reply
|
news64 (1253)
|
7/23/2009 6:22:46 PM
|
|
Darren Salt <news@youmustbejoking.demon.cu.invalid> wrote:
> I demand that Sidney Lambe may or may not have written...
>
>> Chris Davies <chris-usenet@roaima.co.uk> wrote:
> [snip]
>>> I /like/ a general newsgroup that doesn't pick on flavours. And I dislike
>>> web forums - or at least the interface that I have to use to get at them.
>
>> Right on. Web forums are pathetic attempts to emulate the NNTP protocol
>> with the HTTP protocol. God they STINK.
>
> They're... just about tolerable in the absence of an appropriate newsgroup or
> mailing list, but only if the need is great.
Considering the fact that most web forums produce 90% garbage, judging
from their archives, that need would have to be truly great.
I go for the mailing lists and private newsservers. Much higher signal-to-noise
ratio.
>
> "You have a private message! Click on this link to see it..." – ugh.
> Horrible. Interferes with reading while offline (which I do fairly
> regularly), but then that's the nature of a web forum: restrictive.
Too bad they aren't restrictive about the people who can post on them.
>
> BTW, "protocol protocol"? :-)
That's assuming that everyone knows what the letters of
the acronyms stand for, and they often don't. They just know
that they refer to the usenet and the web, at best.
Sid
|
|
0
|
|
|
|
Reply
|
sidneylambe (322)
|
7/23/2009 7:07:33 PM
|
|
On Jul 21, 3:12=A0am, Marcel Bruinsma <we-love-all-s...@gmail.com>
wrote:
> googler wrote:
> >> Assuming you're on a linux tty, you could customise the keymap.
> >> [...]
>
> > Thanks. Where shall I set this?
>
> My suggestion only works for a real terminal. You are using
> a gnome-terminal (a terminal emulator in an X window). The
> X keymap table can be changed with xmodmap(1). You
> could try:
>
> $ xmodmap -pke >xkeymap.orig
> $ cp xkeymap.orig xkeymap.test
>
> Then open xkeymap.test in an editor, and search for 'Home'
> and 'End'. If these are missing you need to add them, for
> example:
>
> keycode =A097 =3D Home
> keycode 103 =3D End
>
> will work for many PC keyboards. You can test by running
> "xmodmap xkeymap.test", and if it doesn't work re-install
> the original map. If it does work try "mv xkeymap.test
> $HOME/.xmodmaprc", to activate the modified map
> automatically when you log in.
>
I tried this, but do not see any change at all in the behavior of the
'home' and 'end' keys. Do I need admin privilege for the change to
take effect?
|
|
0
|
|
|
|
Reply
|
pinaki_m77 (96)
|
7/24/2009 4:20:25 AM
|
|
googler wrote:
> On Jul 21, 3:12 am, Marcel Bruinsma <we-love-all-s...@gmail.com>
> wrote:
>> My suggestion only works for a real terminal. You are using
>> a gnome-terminal (a terminal emulator in an X window). The
>> X keymap table can be changed with xmodmap(1). You
>> could try:
>>
>> $ xmodmap -pke >xkeymap.orig
>> $ cp xkeymap.orig xkeymap.test
>>
>> Then open xkeymap.test in an editor, and search for 'Home'
>> and 'End'. If these are missing you need to add them, for
>> example:
>>
>> keycode 97 = Home
>> keycode 103 = End
>>
>> will work for many PC keyboards. You can test by running
>> "xmodmap xkeymap.test", and if it doesn't work re-install
>> the original map. If it does work try "mv xkeymap.test
>> $HOME/.xmodmaprc", to activate the modified map
>> automatically when you log in.
>>
>
> I tried this, but do not see any change at all in the behavior of the
> 'home' and 'end' keys. Do I need admin privilege for the change to
> take effect?
No, you don't need special privileges. You might need different
keycodes. Open the gnome-terminal and run 'xev'. A tiny window
should open, and in the terminal window there should be several
'Notify' messages. Press the 'Home' key once, and read the key
events (KeyPress and KeyRelease) in the terminal window. It
should include 'keycode NNN', where NNN is the number you
need. Do the same for 'End'; terminate xev by closing the xev
window.
--
printf -v email $(echo \ 155 141 162 143 145 154 142 162 165 151 \
156 163 155 141 100 171 141 150 157 157 056 143 157 155|tr \ \\\\)
# Live every life as if it were your last! #
|
|
0
|
|
|
|
Reply
|
we-love-all-spam (43)
|
7/25/2009 12:45:31 AM
|
|
On Jul 24, 7:45=A0pm, Marcel Bruinsma <we-love-all-s...@gmail.com>
wrote:
> googler wrote:
> > On Jul 21, 3:12=A0am, Marcel Bruinsma <we-love-all-s...@gmail.com>
> > wrote:
> >> My suggestion only works for a real terminal. You are using
> >> a gnome-terminal (a terminal emulator in an X window). The
> >> X keymap table can be changed with xmodmap(1). You
> >> could try:
>
> >> $ xmodmap -pke >xkeymap.orig
> >> $ cp xkeymap.orig xkeymap.test
>
> >> Then open xkeymap.test in an editor, and search for 'Home'
> >> and 'End'. If these are missing you need to add them, for
> >> example:
>
> >> keycode =A097 =3D Home
> >> keycode 103 =3D End
>
> >> will work for many PC keyboards. You can test by running
> >> "xmodmap xkeymap.test", and if it doesn't work re-install
> >> the original map. If it does work try "mv xkeymap.test
> >> $HOME/.xmodmaprc", to activate the modified map
> >> automatically when you log in.
>
> > I tried this, but do not see any change at all in the behavior of the
> > 'home' and 'end' keys. Do I need admin privilege for the change to
> > take effect?
>
> No, you don't need special privileges. You might need different
> keycodes. Open the gnome-terminal and run 'xev'. A tiny window
> should open, =A0and in the terminal window there should be several
> 'Notify' messages. Press the 'Home' key once, and read the key
> events (KeyPress and KeyRelease) in the terminal window. It
> should include 'keycode NNN', where NNN is the number you
> need. Do the same for 'End'; terminate xev by closing the xev
> window.
>
Thanks for the reply. From xev I get 36 and 35 as the keycodes for
'home' and 'end' keys. That's exactly what I have as my mapped keys,
as shown by the output of the xmodmap command.
.........
keycode 34 =3D Next
keycode 35 =3D End
keycode 36 =3D Home
keycode 37 =3D Left
........
So I don't know what's going on. I hope I have explained the problem
properly. On command prompt, when I start typing a command, and want
to navigate on the command line using the 'home' and 'end' keys (for
example, to go to the beginning of the command line that I am
currently typing), then this does not work. If I type these keys, it
enters the tilde (~) character instead.
If it is of any relevance, I'm basically using a remote desktop
program (something like VNC) for my work.
|
|
0
|
|
|
|
Reply
|
pinaki_m77 (96)
|
7/25/2009 4:59:01 PM
|
|
googler wrote:
> Thanks for the reply. From xev I get 36 and 35 as the keycodes for
> 'home' and 'end' keys. That's exactly what I have as my mapped keys,
> as shown by the output of the xmodmap command.
> ........
> keycode 34 = Next
> keycode 35 = End
> keycode 36 = Home
> keycode 37 = Left
> .......
>
> So I don't know what's going on. I hope I have explained the problem
> properly. On command prompt, when I start typing a command, and want
> to navigate on the command line using the 'home' and 'end' keys (for
> example, to go to the beginning of the command line that I am
> currently typing), then this does not work. If I type these keys, it
> enters the tilde (~) character instead.
Which shell (bash/tcsh/zsh/…) are you using?
What are the byte sequences produced by the home and end keys?
(you can see by running “cat | od -bc”; press the home key, then the
enter key, followed by ctl-D to quit.)
> If it is of any relevance, I'm basically using a remote desktop
> program (something like VNC) for my work.
Maybe, but the tilde you see, makes me suspect that home and
end generate ‘esc [ 1 ~’ and ‘esc [ 4 ~’ (or similar), and your
shell doesn't bind those sequences to a function (for bash the
readline command names are ‘beginning-of-line’ and
‘end-of-line’).
--
printf -v email $(echo \ 155 141 162 143 145 154 142 162 165 151 \
156 163 155 141 100 171 141 150 157 157 056 143 157 155|tr \ \\\\)
# Live every life as if it were your last! #
|
|
0
|
|
|
|
Reply
|
we-love-all-spam (43)
|
7/26/2009 1:35:31 AM
|
|
On Jul 25, 8:35=A0pm, Marcel Bruinsma <we-love-all-s...@gmail.com>
wrote:
> googler wrote:
> > Thanks for the reply. From xev I get 36 and 35 as the keycodes for
> > 'home' and 'end' keys. That's exactly what I have as my mapped keys,
> > as shown by the output of the xmodmap command.
> > ........
> > keycode =A034 =3D Next
> > keycode =A035 =3D End
> > keycode =A036 =3D Home
> > keycode =A037 =3D Left
> > .......
>
> > So I don't know what's going on. I hope I have explained the problem
> > properly. On command prompt, when I start typing a command, and want
> > to navigate on the command line using the 'home' and 'end' keys (for
> > example, to go to the beginning of the command line that I am
> > currently typing), then this does not work. If I type these keys, it
> > enters the tilde (~) character instead.
>
> Which shell (bash/tcsh/zsh/=85) are you using?
> What are the byte sequences produced by the home and end keys?
> (you can see by running =93cat | od -bc=94; press the home key, then the
> enter key, followed by ctl-D to quit.)
>
I'm using tcsh.
Output for home, enter and ctrl-D:
xxxxx@yyy[1]> cat | od -bc
^[[1~
0000000 033 133 061 176 012
033 [ 1 ~ \n
0000005
Output for end, enter and ctrl-D:
xxxxx@yyy[2]> cat | od -bc
^[[4~
0000000 033 133 064 176 012
033 [ 4 ~ \n
0000005
> > If it is of any relevance, I'm basically using a remote desktop
> > program (something like VNC) for my work.
>
> Maybe, but the tilde you see, makes me suspect that home and
> end generate =91esc [ 1 ~=92 and =91esc [ 4 ~=92 (or similar), and your
> shell doesn't bind those sequences to a function (for bash the
> readline command names are =91beginning-of-line=92 and
> =91end-of-line=92).
>
|
|
0
|
|
|
|
Reply
|
pinaki_m77 (96)
|
7/26/2009 4:49:56 PM
|
|
On Jul 26, 11:49=A0am, googler <pinaki_...@yahoo.com> wrote:
> On Jul 25, 8:35=A0pm, Marcel Bruinsma <we-love-all-s...@gmail.com>
> wrote:
>
>
>
>
>
> > googler wrote:
> > > Thanks for the reply. From xev I get 36 and 35 as the keycodes for
> > > 'home' and 'end' keys. That's exactly what I have as my mapped keys,
> > > as shown by the output of the xmodmap command.
> > > ........
> > > keycode =A034 =3D Next
> > > keycode =A035 =3D End
> > > keycode =A036 =3D Home
> > > keycode =A037 =3D Left
> > > .......
>
> > > So I don't know what's going on. I hope I have explained the problem
> > > properly. On command prompt, when I start typing a command, and want
> > > to navigate on the command line using the 'home' and 'end' keys (for
> > > example, to go to the beginning of the command line that I am
> > > currently typing), then this does not work. If I type these keys, it
> > > enters the tilde (~) character instead.
>
> > Which shell (bash/tcsh/zsh/=85) are you using?
> > What are the byte sequences produced by the home and end keys?
> > (you can see by running =93cat | od -bc=94; press the home key, then th=
e
> > enter key, followed by ctl-D to quit.)
>
> I'm using tcsh.
>
> Output for home, enter and ctrl-D:
> xxxxx@yyy[1]> cat | od -bc
> ^[[1~
> 0000000 033 133 061 176 012
> =A0 =A0 =A0 =A0 033 =A0 [ =A0 1 =A0 ~ =A0\n
> 0000005
>
> Output for end, enter and ctrl-D:
> xxxxx@yyy[2]> cat | od -bc
> ^[[4~
> 0000000 033 133 064 176 012
> =A0 =A0 =A0 =A0 033 =A0 [ =A0 4 =A0 ~ =A0\n
> 0000005
>
>
>
> > > If it is of any relevance, I'm basically using a remote desktop
> > > program (something like VNC) for my work.
>
> > Maybe, but the tilde you see, makes me suspect that home and
> > end generate =91esc [ 1 ~=92 and =91esc [ 4 ~=92 (or similar), and your
> > shell doesn't bind those sequences to a function (for bash the
> > readline command names are =91beginning-of-line=92 and
> > =91end-of-line=92
I also got the output of these commands (first home, then end) on the
machine where the home and end keys seem to be working.
zzzzzz> cat | od -bc
^[[H
0000000 033 133 110 012
033 [ H \n
0000004
zzzzzz> cat | od -bc
^[[F
0000000 033 133 106 012
033 [ F \n
0000004
Hope this gives a better idea of what's going on.
|
|
0
|
|
|
|
Reply
|
pinaki_m77 (96)
|
7/26/2009 5:03:55 PM
|
|
googler wrote:
>> I'm using tcsh.
>>
>> Output for home, enter and ctrl-D:
>> xxxxx@yyy[1]> cat | od -bc
>> ^[[1~
>> 0000000 033 133 061 176 012
>> 033 [ 1 ~ \n
>> 0000005
>>
>> Output for end, enter and ctrl-D:
>> xxxxx@yyy[2]> cat | od -bc
>> ^[[4~
>> 0000000 033 133 064 176 012
>> 033 [ 4 ~ \n
>> 0000005
It's been quite some years since I used tcsh, but try the
following bindings:
bindkey '\e[1~' beginning-of-line
bindkey '\e[4~' end-of-line
If they work as expected, add them to ~/.tcshrc.
> I also got the output of these commands (first home, then end) on the
> machine where the home and end keys seem to be working.
>
> zzzzzz> cat | od -bc
> ^[[H
> 0000000 033 133 110 012
> 033 [ H \n
> 0000004
>
> zzzzzz> cat | od -bc
> ^[[F
> 0000000 033 133 106 012
> 033 [ F \n
> 0000004
It looks like the first terminal is using the linux-console
keytab, the second uses the xterm keytab. Or, perhaps,
one of the terminals is in keypad-mode, while the other
is in application-mode.
--
printf -v email $(echo \ 155 141 162 143 145 154 142 162 165 151 \
156 163 155 141 100 171 141 150 157 157 056 143 157 155|tr \ \\\\)
# Live every life as if it were your last! #
|
|
0
|
|
|
|
Reply
|
we-love-all-spam (43)
|
7/26/2009 8:07:56 PM
|
|
On Jul 26, 3:07=A0pm, Marcel Bruinsma <we-love-all-s...@gmail.com>
wrote:
> googler wrote:
> >> I'm using tcsh.
>
> >> Output for home, enter and ctrl-D:
> >> xxxxx@yyy[1]> cat | od -bc
> >> ^[[1~
> >> 0000000 033 133 061 176 012
> >> 033 =A0 [ =A0 1 =A0 ~ =A0\n
> >> 0000005
>
> >> Output for end, enter and ctrl-D:
> >> xxxxx@yyy[2]> cat | od -bc
> >> ^[[4~
> >> 0000000 033 133 064 176 012
> >> 033 =A0 [ =A0 4 =A0 ~ =A0\n
> >> 0000005
>
> It's been quite some years since I used tcsh, but try the
> following bindings:
>
> =A0bindkey '\e[1~' beginning-of-line
> =A0bindkey '\e[4~' end-of-line
>
> If they work as expected, add them to ~/.tcshrc.
>
> > I also got the output of these commands (first home, then end) on the
> > machine where the home and end keys seem to be working.
>
> > zzzzzz> cat | od -bc
> > ^[[H
> > 0000000 033 133 110 012
> > =A0 =A0 =A0 =A0 033 =A0 [ =A0 H =A0\n
> > 0000004
>
> > zzzzzz> cat | od -bc
> > ^[[F
> > 0000000 033 133 106 012
> > =A0 =A0 =A0 =A0 033 =A0 [ =A0 F =A0\n
> > 0000004
>
> It looks like the first terminal is using the linux-console
> keytab, the second uses the xterm keytab. =A0Or, perhaps,
> one of the terminals is in keypad-mode, while the other
> is in application-mode.
>
> --
> printf -v email $(echo \ 155 141 162 143 145 154 142 162 165 151 \
> 156 163 155 141 100 171 141 150 157 157 056 143 157 155|tr \ =A0\\\\)
> # =A0Live every life as if it were your last! =A0#- Hide quoted text -
>
> - Show quoted text -
It worked. Thank you.
I have a related question. When I open a terminal by right clicking on
the gnome desktop and choosing 'open terminal', pressing the 'home'
and 'end' keys while typing a command actually scroll up and down all
the way respectively on the terminal window. They do not print the
tilde (~) or any other character. The case I described earlier where
it prints the tilde character, is when I open an xterm from this
terminal using the 'xterm' command and press 'home' or 'end' on
command line. Since I have got it working for this case, hopefully I
will be able to figure out how to make it work for the first case too
once I read up on it a little bit from man pages and other sources.
The reason I'm sending writing this is because, this seems to be
another different type of terminal? when I run "echo $TERM" on both
terminals, I get 'xterm' as the output. Then what's the difference?
|
|
0
|
|
|
|
Reply
|
pinaki_m77 (96)
|
7/27/2009 7:05:21 PM
|
|
googler wrote:
> I have a related question. When I open a terminal by right clicking on
> the gnome desktop and choosing 'open terminal', pressing the 'home'
> and 'end' keys while typing a command actually scroll up and down all
> the way respectively on the terminal window. They do not print the
> tilde (~) or any other character.
I'm not familiar with gnome-terminal, but it looks like 'home'
and 'end' are defined as keyboard shortcuts, ie the terminal
intercepts these keys, in stead of passing them to tcsh.
Try to find a menu item titled 'shortcuts' or 'configure'
or something similar. There's also the gnome library:
http://library.gnome.org/users/gnome-terminal/
> The reason I'm sending writing this is because, this seems to be
> another different type of terminal?
Yes and no :) gnome-terminal and xterm are different
applications. The xterm application is the original from
the X consortium, gnome-terminal is part of the GNOME
project. AFAIK gnome-terminal is supposed to offer the
*same* terminal emulation as xterm. The difference will
probably be in the 'eye-candy' and configuration
departments.
--
printf -v email $(echo \ 155 141 162 143 145 154 142 162 165 151 \
156 163 155 141 100 171 141 150 157 157 056 143 157 155|tr \ \\\\)
# Live every life as if it were your last! #
|
|
0
|
|
|
|
Reply
|
we-love-all-spam (43)
|
7/28/2009 3:40:30 AM
|
|
On Jul 27, 11:40=A0pm, Marcel Bruinsma <we-love-all-s...@gmail.com>
wrote:
> googler wrote:
> > I have a related question. When I open a terminal by right clicking on
> > the gnome desktop and choosing 'open terminal', pressing the 'home'
> > and 'end' keys while typing a command actually scroll up and down all
> > the way respectively on the terminal window. They do not print the
> > tilde (~) or any other character.
>
> I'm not familiar with gnome-terminal, but it looks like 'home'
> and 'end' are defined as keyboard shortcuts, ie the terminal
> intercepts these keys, in stead of passing them to tcsh.
> Try to find a menu item titled 'shortcuts' or 'configure'
> or something similar. There's also the gnome library:http://library.gnome=
..org/users/gnome-terminal/
>
> > The reason I'm sending writing this is because, this seems to be
> > another different type of terminal?
:-)
> Yes and no :) gnome-terminal andxtermare different
> applications. Thextermapplication is the original from
> the X consortium, gnome-terminal is part of the GNOME
X consortium stopped in 1996 (sounds like you're reading
the gnome-terminal documentation ;-)
> project. AFAIK gnome-terminal is supposed to offer the
> *same* terminal emulation asxterm. The difference will
> probably be in the 'eye-candy' and configuration
> departments.
Actually gnome-terminal's deficient in various ways.
It's been reported several times on bugzilla.gnome.org,
without any interesting reply by its developers.
http://bugzilla.gnome.org/buglist.cgi?query=3Dxterm
(Perhaps eye-candy is their expertise).
ymmv
--
Thomas E. Dickey <dickey@invisible-island.net>
http://invisible-island.net
ftp://invisible-island.net
|
|
0
|
|
|
|
Reply
|
dickey3 (20)
|
7/29/2009 12:59:30 AM
|
|
On Jul 27, 11:40=A0pm, Marcel Bruinsma <we-love-all-s...@gmail.com>
wrote:
> or something similar. There's also the gnome library:http://library.gnome=
..org/users/gnome-terminal/
That would be a good place for its developers to document
what it actually does. But they don't - aside from an inaccurate
assertion that it matches xterm's behavior (as noted in more than
one bug report ;-).
The ncurses terminfo description for "gnome" is likely the only
documentation for this terminal. On a system with a complete
terminal database, "infocmp gnome xterm-new" would show some
of the differences; there are inevitably other undocumented
differences due to bugs in gnome-terminal.
hth
--
Thomas E. Dickey <dickey@invisible-island.net>
http://invisible-island.net
ftp://invisible-island.net
|
|
0
|
|
|
|
Reply
|
dickey3 (20)
|
7/29/2009 9:05:46 AM
|
|
|
22 Replies
48 Views
(page loaded in 0.239 seconds)
Similiar Articles: remotely control UNIX from within Matlab on Windows - comp.soft ...Is the sequence of commands to be executed known at the time you start the session ... comp.unix.solaris ..... and end keys - ksh ... to local windows environment while ... vi, adding words to the beginning of each line - comp.unix.admin ...The "s" says that you're typing a "substitute" command. ... will use the caret for the start of a line. While there are ... how about addign something to the end of ... VNC Windows To Mac Key Mapping Problem - comp.sys.mac.system ...... space when I press the spacebar while typing text. ... Remote Desktop Connection Function Keys ... is not a problem for ... deals with the command-key at the server end ... How to remember key-bindings? - comp.emacsLike most editors, after a while, you start ... command (i.e. the ;; command which lets you run other commands by typing ``M-x ... you'll see most version control keys begin ... key not working - comp.sys.laptops.thinkpadI noticed that the ALT key died while my ... In 10u5 we're seeing that the Home/End keys ... you rush home from work and start your computer, and find your keyboard keys not ... how to move the cursor to the beginning of a text field - comp ...... text field using a script command ... Filename::Fieldname; Start position: 0; End Position: 0] We went through this only a little while back ... cursor Have you ever been typing ... Can I use a sigalrm signal to timeout an operation in a shell ...For example: slowprocess() { i=1 while [ "$i ... I thought maybe I could background the sleep command, to ... -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [I'm reading ... Questions from a linux switcher - comp.unix.solaris... and the dtrace/zones docs and now wish want to start ... user are there any howto's guides on equivalent commands ... Mapping home and end keys - ksh and Putty - comp.unix ... Populate form-fillable pdf from command line - comp.text.pdf ...... fillable pdf, fill in some fields with a command ... in mind that iText is a developer tool, while Pdftk is an end ... Click anywhere and start typing. Sign your form. working with multiple input files - comp.lang.awkIf you invoke it from the command line, it ... first and then put an exit at the end to prevent awk waiting for input: BEGIN { while ... Join two files with join keys in ... Efficient way to capture all keyboard input - comp.lang.java.gui ...Whenever a user starts typing letters I want to place ... you would be in a table or a list, when you start to type ... use a JList - I only ever use JTable as I always end up ... Keyboard Input - comp.lang.asm.x86If anyone can start me off or point me in the right ... swipe one) for pmode, but it may "stall" you for a while. ... 80h ;Test codes for set high bits JNZ End ... keys and complexity - comp.databases.ms-access... the normalized dataset eventually on the back end. ... as you mocve the data around and step it from start to ... members to convey information of session keys, while the ... tape command for solaris 8 - comp.sys.sun.adminIs there a unix command 1. to label a tape? write "tape1 ... monthly basis the monkey doesn't have to remember typing ... CTRL-\ to abort" echo "note: The backup will begin ... Remote Desktop Connection Function Keys - comp.sys.mac.apps ...And the arrow keys to act as Home/End/Page Up/Page Down keys. ... reason my finger reflexes type u after q while ... is an additional modifier, the shift and control keys ... Using the V+ Command Line - Adept Technology, Inc.The following keys move the typing cursor on the command line: ... or Ctrl+ moves the typing cursor to the end of ... input, you can begin typing a monitor command. As ... Basic Emacs Editor Commands - Colorado State University - Fort CollinsTo give you a head start, the following table lists the basic commands you need to ... delete from cursor to end of word ... keyboard-quit: if while typing a command you make ... 6/29/2012 9:05:00 PM
|