News for hackers. Stuff that matters.
Re:Vim.wasm by kalefranz on Wednesday April 24, 2019 @09:35PM (#19744231)
Where’s the escape key on my iPhone?
Re:Vim.wasm by switz on Wednesday April 24, 2019 @09:37PM (#19744238)
I think I finally understand Kafkaesque.
Re:Vim.wasm by microcolonel on Wednesday April 24, 2019 @09:41PM (#19744264)
There is no escape.
Re:Vim.wasm by sbr464 on Wednesday April 24, 2019 @10:20PM (#19744479)
Try:

Ctrl and [

That should send the same as Esc (ASCII 27).

I seem to remember this working on a new iPad Pro keyboard.

Re:Vim.wasm by no-such-address on Wednesday April 24, 2019 @10:35PM (#19744540)
This is incredible. I think I needed this about 40 years when typing on a small Teletype (non-ASR33) without an escape key.
Re:Vim.wasm by midgetjones on Thursday April 25, 2019 @04:57AM (#19746246)
The reason is interesting as well. Paraphrasing from this blog post[0]

When you format the ASCII table in four columns, you can see `ESC` and `[` on the same row. Holding `CTRL` essentially ~lops off the first three bits~ subtracts 64, resulting in `ESC`

   ...
   ...
   0011000 CAN    0111000 8    1011000 X    1111000 x
   0011001 EM     0111001 9    1011001 Y    1111001 y
   0011010 SUB    0111010 :    1011010 Z    1111010 z
   0011011 ESC    0111011 ;    1011011 [    1111011 {
   0011100 FS     0111100 <    1011100 \    1111100 |
   0011101 GS     0111101 =    1011101 ]    1111101 }
   0011110 RS     0111110 >    1011110 ^    1111110 ~
   0011111 US     0111111 ?    1011111 _    1111111 DEL

[0] http://www.catb.org/esr/faqs/things-every-hacker-once-knew/
Re:Vim.wasm by jcr1488 on Thursday April 25, 2019 @05:31AM (#19746407)
> Holding `CTRL` essentially lops off the first three bits

No, it inverts the 7th bit (or subtracts 64).

The Linux `ascii(7)` man page has a similar table, but with 2 columns. The first 32 control characters listed there have their "caret notation" character in the opposite column.

Re:Vim.wasm by nothrabannosir on Thursday April 25, 2019 @06:29AM (#19746655)
Is this why the symbol for Ctrl is also commonly the symbol for xor?!
Re:Vim.wasm by jcr1488 on Thursday April 25, 2019 @06:41AM (#19746722)
I'm not sure. I think the caret is just a prefix to make it distinguishable from the normal letters.

It is the reason why Ctrl+i in a terminal is the same as Tab though. Likewise for Ctrl+m == Enter.

Re:Vim.wasm by midgetjones on Thursday April 25, 2019 @06:16AM (#19746609)
Thanks! Listen to this person ^
Re:Vim.wasm by closeparen on Thursday April 25, 2019 @12:47AM (#19745057)
Standard adaptation for touchbar Macs, too. I find it less of a disruption from the home row.
Re:Vim.wasm by daveFNbuck on Thursday April 25, 2019 @01:02AM (#19745139)
Caps lock is right on the home row.
Re:Vim.wasm by closeparen on Thursday April 25, 2019 @01:17AM (#19745217)
Oh, right. I have control remapped on caps lock, so it's caps lock + [.
Re:Vim.wasm by boomskats on Thursday April 25, 2019 @01:24AM (#19745270)
This is where https://github.com/alols/xcape is amazing.

I'm not sure, but I think Karabiner can be configured to act the same way.

Re:Vim.wasm by apetrovic on Thursday April 25, 2019 @05:03AM (#19746287)
Karabiner is amazing. I have caps lock mapped to ctrl-cmd-alt when pressed with some other key, and esc when pressed and released alone.
Re:Vim.wasm by daveFNbuck on Thursday April 25, 2019 @11:21AM (#19749083)
I just remap caps lock to escape.
Re:Vim.wasm by sbr464 on Thursday April 25, 2019 @01:19AM (#19745234)
Not as easy to remap keys though, on the iPad (keyboard cover) unless I’m not aware.
Re:Vim.wasm by daveFNbuck on Thursday April 25, 2019 @11:21AM (#19749076)
It's very easy to remap on the touchbar macs though.
Re:Vim.wasm by teddyh on Thursday April 25, 2019 @06:56AM (#19746806)
Something else to try is Ctrl-3. This commonly gives the ESC code.
Re:Vim.wasm by hairui on Thursday April 25, 2019 @04:23AM (#19746099)
You can also ctrl-c
Re:Vim.wasm by ClassyJacket on Thursday April 25, 2019 @08:26AM (#19747312)
Where's the escape key on my Macbook Pro?
Re:Vim.wasm by vorpalhex on Thursday April 25, 2019 @10:34AM (#19748555)
Same place as before, it's just no longer as squishy
Re:Vim.wasm by opan on Thursday April 25, 2019 @01:22AM (#19745259)
I missed the lowercase i on first read. I'll comment anyway in case this helps others. Hacker's Keyboard from f-droid has an escape key. If using the compact layout you can get to it by holding the tab key. I think on the full layout it has a more traditional placement. I'm not sure what alternative keyboards iOS has.
Re:Vim.wasm by pjc50 on Thursday April 25, 2019 @05:21AM (#19746366)
Android at least lets you install custom keyboards - and there are hacker keyboards that have escape on ...

Very useful for SSH and termux.

Re:Vim.wasm by lvh on Thursday April 25, 2019 @08:07AM (#19747174)
Re:Vim.wasm by hota_mazi on Thursday April 25, 2019 @09:06AM (#19747637)
There's none, use Ctrl-[, duh.