geekhack

geekhack Community => Other Geeky Stuff => Topic started by: ch_123 on Wed, 17 March 2010, 17:39:30

Title: Random trivia for *nix users
Post by: ch_123 on Wed, 17 March 2010, 17:39:30
Ever wonder why ~ represents your home directory, or why vi/vim uses h j k l for arrow keys?

This terminal, the ADM-3A is to blame -

(http://www.srs.ne.jp/~north/netdaemon/image/adm3a.jpg)
(http://rollmops.files.wordpress.com/2006/04/Lear_Siegler-ADM3A_1805.jpg)
Title: Random trivia for *nix users
Post by: EverythingIBM on Wed, 17 March 2010, 23:32:49
I hate toilet bowl terminals. And I especially hate arrow keys in one row like that (commodore liked doing that, grrr; they should have copied IBM's perfect layout).
Title: Re: Random trivia for *nix users
Post by: HaaTa on Wed, 17 March 2010, 23:57:21
Lately, I've been preferring the numpad arrows over the typical ones.
Currently Colemak is holding me off from using the hjkl keys in vim (all the other keys are fine).
Title: Random trivia for *nix users
Post by: konz on Thu, 18 March 2010, 10:36:10
Wow, I din't know that!

Some more trivia (unsubstantiated): ~ is used as a (binary) negation in C and derived languages because dd's EBCDIC map turns ~ into the (logical) negation symbol.

Substantiated: &, | and ~ have lower priority than == in C because && and || were added later.
Title: Random trivia for *nix users
Post by: kode on Thu, 18 March 2010, 17:48:45
hjkl is to me, not wrong because it's on one row. It's a bit wrong for not being the right side of home row position, instead shifted one key to the left.
Title: Random trivia for *nix users
Post by: ch_123 on Thu, 18 March 2010, 18:04:34
Quote from: EverythingIBM;165044
they should have copied IBM's perfect layout).


Like IBM copied DEC?

(http://upload.wikimedia.org/wikipedia/en/5/53/Lk201.jpg)
Title: Random trivia for *nix users
Post by: ch_123 on Thu, 18 March 2010, 18:27:27
What is that behemoth under the desk?
Title: Random trivia for *nix users
Post by: TexasFlood on Thu, 18 March 2010, 19:24:28
Quote from: ch_123;165238
Like IBM copied DEC?

True, we all have DEC to thank for our inverse "T" arrow keys and really the most popular & copied keyboard design of the last 30 years.

As I understand it, at the time the LK201 was released, most of the industry followed IBM's lead at the time including DEC.

Apparently there was a "LK201 keyboard committee" who, after an internal study, brainstormed the new arrow key design in just a few minutes.

Although the LK201 (http://en.wikipedia.org/wiki/LK201) came out in 1982 after the original IBM PC (http://en.wikipedia.org/wiki/IBM_Personal_Computer), IBM (and nearly everyone else) copied it as soon as they could.  Couple more interesting links regarding the LK201 (http://www.absoluteastronomy.com/topics/LK201) and the design of it's arrow keys (http://www.eldacur.com/~brons/NerdCorner/InverseT-History.html).
Title: Random trivia for *nix users
Post by: kishy on Thu, 18 March 2010, 20:19:25
The display station on that Dutch system looks like one of the pre-Mac Apple systems, monitor included.

Lisa maybe?
Title: Random trivia for *nix users
Post by: TexasFlood on Thu, 18 March 2010, 20:33:43
Quote from: kishy;165269
The display station on that Dutch system looks like one of the pre-Mac Apple systems, monitor included.

Lisa maybe?
It's a monster Zilog CP/M system.  The display is a just a terminal.
Title: Random trivia for *nix users
Post by: kishy on Thu, 18 March 2010, 21:44:18
Quote from: TexasFlood;165275
It's a monster Zilog CP/M system.  The display is a just a terminal.


I know...I'm saying the display station portion itself looks like an old Apple system, as a whole.
Title: Random trivia for *nix users
Post by: TexasFlood on Thu, 18 March 2010, 22:16:24
Quote from: kishy;165284
I know...I'm saying the display station portion itself looks like an old Apple system, as a whole.

OK, my bad...
Title: Random trivia for *nix users
Post by: DreymaR on Fri, 19 March 2010, 03:13:52
Ripster, could you please provide a link to that study or a writeup of it?
Title: Random trivia for *nix users
Post by: TexasFlood on Fri, 19 March 2010, 09:35:15
Quote from: DreymaR;165324
Ripster, could you please provide a link to that study or a writeup of it?

Check that link "the design of it's arrow keys" (http://geekhack.org/showthread.php?t=9202&_linkout=http%3A//www.eldacur.com/%7Ebrons/NerdCorner/InverseT-History.html&dr_log=-1) in my earlier post (http://geekhack.org/showpost.php?p=165257&postcount=10), it's all there.
Title: Random trivia for *nix users
Post by: iMav on Sat, 20 March 2010, 17:17:33
I was an Air Force brat plus did one tour myself in the late 80's/early 90's (spending a good portion of that time in the Middle East during the first Gulf War).
Title: Random trivia for *nix users
Post by: ricercar on Sat, 20 March 2010, 17:45:09
Quote from: TexasFlood;165275
It's a monster Zilog CP/M system.  The display is a just a terminal.

Z-80: So much better than x86. Unfortunately, Zilog was owned by an IBM-competitor, so IBM dismissed the Z-80 for the IBM PC without consideration for its technical merits.

Quote from: iMav;165700
in the late 80's/early 90's

Just married, newly degreed again, and looking for a job. And looking, and looking. Hmm, the First George Bush War sounds a lot like the Second George Bush War to me.
Title: Random trivia for *nix users
Post by: JBert on Sat, 20 March 2010, 19:21:25
Quote from: HaaTa;165048
Lately, I've been preferring the numpad arrows over the typical ones.
Currently Colemak is holding me off from using the hjkl keys in vim (all the other keys are fine).
I got this in my .vimrc to use UNEI:
Code: [Select]
nnoremap <C-n> h
xnoremap <C-n> h
onoremap <C-n> h
nnoremap <C-u> k
xnoremap <C-u> k
onoremap <C-u> k
nnoremap <C-e> j
xnoremap <C-e> j
onoremap <C-e> j
nnoremap <C-i> l
xnoremap <C-i> l
onoremap <C-i> l
inoremap <C-n> <Left>
&quot;cnoremap <C-n> <Left>
inoremap <C-u> <Up>
&quot;cnoremap <C-u> <Up>
inoremap <C-e> <Down>
&quot;cnoremap <C-e> <Down>
inoremap <C-i> <Right>
&quot;cnoremap <C-i> <Right>
While you always have to press Ctrl to use the cursors, they work in almost every mode and it doesn't remap your whole Vim like Shai's version does.
Title: Random trivia for *nix users
Post by: EverythingIBM on Sun, 21 March 2010, 02:08:55
Quote from: webwit;165705
Cool. I was playing MUD and wiping out Orcs.


Warcraft 1?

I think what makes warcraft 1 challenging is the fact you can only select, what, 4 units at a time? Then you had to use M to move, and ctrl to select. It was still moderately fun: but I really like warcraft 2.
Title: Random trivia for *nix users
Post by: ch_123 on Sun, 21 March 2010, 05:37:11
Quote from: ricercar;165709
Hmm, the First George Bush War sounds a lot like the Second George Bush War to me.


They managed to win the first one...
Title: Random trivia for *nix users
Post by: JBert on Sun, 21 March 2010, 09:28:08
Quote from: EverythingIBM;165809
Quote from: webwit;165705
Cool. I was playing MUD and wiping out Orcs.
Warcraft 1?

I think what makes warcraft 1 challenging is the fact you can only select, what, 4 units at a time? Then you had to use M to move, and ctrl to select. It was still moderately fun: but I really like warcraft 2.
Ehr no, MUD (http://en.wikipedia.org/wiki/MUD). That's text for you.
Title: Random trivia for *nix users
Post by: EverythingIBM on Sun, 21 March 2010, 15:40:25
Quote from: JBert;165850
Ehr no, MUD (http://en.wikipedia.org/wiki/MUD). That's text for you.


I thought he meant mud and warcraft 1.

I know about mud games; I'm not the biggest fan of them.
Title: Random trivia for *nix users
Post by: HaaTa on Sun, 21 March 2010, 20:22:34
Quote from: JBert;165749
I got this in my .vimrc to use UNEI:
Code: [Select]
nnoremap <C-n> h
xnoremap <C-n> h
onoremap <C-n> h
nnoremap <C-u> k
xnoremap <C-u> k
onoremap <C-u> k
nnoremap <C-e> j
xnoremap <C-e> j
onoremap <C-e> j
nnoremap <C-i> l
xnoremap <C-i> l
onoremap <C-i> l
inoremap <C-n> <Left>
&quot;cnoremap <C-n> <Left>
inoremap <C-u> <Up>
&quot;cnoremap <C-u> <Up>
inoremap <C-e> <Down>
&quot;cnoremap <C-e> <Down>
inoremap <C-i> <Right>
&quot;cnoremap <C-i> <Right>
While you always have to press Ctrl to use the cursors, they work in almost every mode and it doesn't remap your whole Vim like Shai's version does.


Neat! Definitely have to try it out.
Title: Random trivia for *nix users
Post by: ricercar on Sun, 21 March 2010, 20:56:15
You are in a maze of twisty little passages, all the same.
Title: Random trivia for *nix users
Post by: pikapika on Tue, 23 March 2010, 04:39:38
this distro is nice, full text mode, but very efficient and many things can be done
http://inx.maincontent.net

feels a bit like in the old days of vt100
Title: Random trivia for *nix users
Post by: pfink on Wed, 24 March 2010, 16:13:50
Quote from: ricercar;166044
You are in a maze of twisty little passages, all the same.


A hollow voice says "PLUGH".
Title: Random trivia for *nix users
Post by: ricercar on Wed, 24 March 2010, 17:42:09
I call your PLUGH and raise you an XYZZY!
Title: Random trivia for *nix users
Post by: Xuan on Wed, 24 March 2010, 22:35:30
Quote from: ricercar;166610
I call your PLUGH and raise you an XYZZY!


You guys would like emacs dunnet.
Title: Random trivia for *nix users
Post by: DreymaR on Thu, 25 March 2010, 03:28:57
PLOVER.

On a side note: I use the Alt key myself, for Vim's omnimode UNEI navigation needs. I use mostly GVim in Windows, and if you hit and then release the Alt key you get menu selection which frees up the Alt key for key combos like these - brilliant!

I do a lot more, fiddler that I am, but I try to be a bit less intrusive than Shai was.

Excerpt (if you don't want to remap the unmodified UNEI keys, use M-unei mappings throughout):
Code: [Select]
set winaltkeys=no &quot; allow mapping of alt (meta) key shortcuts
&quot; Make Alt pop up the menu for all keys, mappings in use will be overridden subsequentially
&quot; Note that menus can also be activated by pressind AND RELEASING the Alt key first, and then the letter key!
noremap <silent> <M-e> :simalt e<CR>|noremap <silent> <M-i> :simalt i<CR>|
noremap <silent> <M-n> :simalt n<CR>|noremap <silent> <M-u> :simalt u<CR>|

&quot; Up/down/left/right
nnoremap u k|xnoremap u k|onoremap u k|noremap! <M-u> <Up>|snoremap <M-u> <Up>|
nnoremap n h|xnoremap n h|onoremap n h|noremap! <M-n> <Left>|snoremap <M-n> <Left>|
nnoremap e j|xnoremap e j|onoremap e j|noremap! <M-e> <Down>|snoremap <M-e> <Down>|
nnoremap i l|xnoremap i l|onoremap i l|noremap! <M-i> <Right>|snoremap <M-i> <Right>|
&quot; TODO: Exclusive (=not linewise) motions? (gk/gj)
Title: Random trivia for *nix users
Post by: phobus on Thu, 25 March 2010, 06:47:37
Quote from: pfink;166587
A hollow voice says "PLUGH".


Quote from: ricercar;166610
I call your PLUGH and raise you an XYZZY!


You are both likely to be eaten by a grue.