Messages in this thread |  | | Date | Fri, 13 Dec 1996 21:27:44 +0200 (EET) | From | Tuomas Heino <> | Subject | Re: how many vtys? |
| |
On Wed, 11 Dec 1996, Charlie Ross wrote:
> > > I'm running 2.1.13... I only have tty 1-9 and only 1-6 are text... 7 seems > to be X only > how are you guys getting 24+ is there a config for that... B/C god knows I > could use them... > > In fact.. in my /dev/ I only HAVE tty 1-9 then tty[CSpqrs] > > where are you getting vtty? > help! > Simple... cd /dev; ./MAKEDEV tty10; ./MAKEDEV tty11 ... and so on ... (yeah you could script it;) ... if your MAKEDEV doesn't support ttys 00-63 then you'll need to use mknod like this: mknod /dev/tty15 c 4 15 my current ones just as a sample: [root@bx2 /root]# ls -la /dev/tty[0-9]* crw--w--w- 1 tbittih tbittih 4, 0 Dec 13 16:59 /dev/tty0 crw------- 1 root tty 4, 1 Dec 13 20:05 /dev/tty1 crw--w---- 1 tbittih tty 4, 10 Dec 13 20:04 /dev/tty10 crw------- 1 root tty 4, 11 Dec 13 16:59 /dev/tty11 crw------- 1 root root 4, 12 Dec 13 16:59 /dev/tty12 crw------- 1 tbittih tbittih 4, 13 Mar 30 1996 /dev/tty13 crw------- 1 daemon daemon 4, 14 Dec 13 19:06 /dev/tty14 crw------- 1 daemon daemon 4, 15 Dec 13 16:59 /dev/tty15 crw------- 1 tbittih tbittih 4, 16 Dec 13 20:03 /dev/tty16 crw------- 1 root root 4, 17 Apr 13 1996 /dev/tty17 crw------- 1 root tty 4, 18 Apr 13 1996 /dev/tty18 crw------- 1 root tty 4, 19 Apr 13 1996 /dev/tty19 crw------- 1 root tty 4, 2 Dec 13 19:18 /dev/tty2 crw------- 1 root tty 4, 20 Apr 13 1996 /dev/tty20 crw------- 1 root tty 4, 21 Apr 13 1996 /dev/tty21 crw------- 1 root tty 4, 22 Jun 8 1996 /dev/tty22 crw------- 1 root tty 4, 23 Apr 13 1996 /dev/tty23 crw------- 1 root tty 4, 24 Apr 13 1996 /dev/tty24 crw------- 1 root tty 4, 25 Jun 8 1996 /dev/tty25 crw------- 1 root tty 4, 26 Nov 17 19:09 /dev/tty26 crw------- 1 root tty 4, 27 Nov 17 19:09 /dev/tty27 crw------- 1 root tty 4, 28 Nov 17 19:09 /dev/tty28 crw------- 1 root tty 4, 29 Nov 17 19:09 /dev/tty29 crw------- 1 root tty 4, 3 Dec 13 16:55 /dev/tty3 crw------- 1 root tty 4, 30 Nov 17 19:15 /dev/tty30 crw------- 1 root tty 4, 31 Nov 17 19:15 /dev/tty31 crw------- 1 root tty 4, 32 Nov 17 19:15 /dev/tty32 crw------- 1 root tty 4, 33 Nov 17 19:15 /dev/tty33 crw------- 1 root tty 4, 34 Nov 17 19:15 /dev/tty34 crw------- 1 root tty 4, 35 Nov 17 19:15 /dev/tty35 crw------- 1 root tty 4, 36 Nov 17 19:15 /dev/tty36 crw------- 1 root tty 4, 4 Dec 13 16:55 /dev/tty4 crw--w---- 1 tbittih tty 4, 5 Dec 13 20:05 /dev/tty5 crw--w---- 1 tbittih tty 4, 6 Dec 13 20:05 /dev/tty6 crw------- 1 root tty 4, 7 Dec 13 16:59 /dev/tty7 crw------- 1 root tty 4, 8 Dec 13 16:59 /dev/tty8 crw------- 1 root tty 4, 9 Dec 13 16:59 /dev/tty9
(haven't bothered to create more 'cause haven't bothered to think how on how to bind keys to 'em nor haven't needed 'em;)
anyway to use the ones above 24 you'll need to add 'em to your keymap... (haven't yet done this thing in X (Xmodmap?) ... you'll need to c-a-Fx to a console X knows about and then use the alt-fxx or whatever) sample from my current keymap (which I load with "loadkeys /usr/lib/kbd/keytables/NoN.map") :
# addon map - DON'T use standalone - designed as fi-latin1.map addon # By: tbittih@pal.xgw.fi
keycode 29 = Control keycode 42 = Shift keycode 54 = Shift keycode 56 = Alt keycode 59 = F1 F11 Console_13 control keycode 59 = F1 alt keycode 59 = Console_1 control alt keycode 59 = Console_1 control AltGr keycode 59 = Console_25 keycode 60 = F2 F12 Console_14 control keycode 60 = F2 alt keycode 60 = Console_2 control alt keycode 60 = Console_2 control AltGr keycode 60 = Console_26 keycode 61 = F3 F13 Console_15 control keycode 61 = F3 alt keycode 61 = Console_3 control alt keycode 61 = Console_3 control AltGr keycode 61 = Console_27
-snip-you-should-be-able-to-figure-out-what's-missing-
keycode 88 = F12 F12 Console_24 control keycode 88 = F12 alt keycode 88 = Console_12 control alt keycode 88 = Console_12 control AltGr keycode 88 = Console_36 keycode 97 = Control keycode 100 = AltGr
# addon - control left & control right... "sacrificed" F234 and F235 for 'em keycode 105 = Left control keycode 105 = F234 alt keycode 105 = Decr_Console keycode 106 = Right control keycode 106 = F235 alt keycode 106 = Incr_Console # also "sacrificed" esc[T~ and esc[U~ ... does anything use these actually? string F234 = "\033[T~" string F235 = "\033[U~"
#end - ok I snipped out some (useless) things but who cares ;)
also a .inputrc if you'll want to use the control-left / -right : set meta-flag on set convert-meta off set output-meta on "\e[U~": forward-word "\e[T~": backward-word ... irc script available if you want those two keys (and other nice keys too) Guess I should stop wasting time on writing this thingy, right?
|  |