Skip to content

Ignore unknown or unimplemented escape sequence input #514

@tompng

Description

@tompng

Description

Some other REPL ignores unknown escape sequence such as

\e🐔
\e[🐧
\eO🐣
\e[1🐦
\e[2;3🐤
# node ignores it all. python and php beep sound in some of these.
# to input, type esc + paste quickly

When you input these escape sequence, IRB will insert it into input buffer and displayed in screen.
unknown_esc_seq

Here are other examples irb does not handle and displays escape sequence. (I tried in Mac Terminal.app)
option+up option+down option+[aeghijkmoqrsvyzAEGHIJKMOQRSTVYZ!@#$%... and more] ctrl+o ctrl+w f1 ~ f12 option + f1 ~ option + f12

We cannot implement every existing escape sequence input right now, so we first need to ignore these unknown or unimplemented escape sequence input.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions