1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Do not use of non-standard escape character '\e'

This commit is contained in:
Kazuhiro NISHIYAMA 2019-09-25 09:48:02 +09:00
parent c60451d9cd
commit ca58e83400
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A

View file

@ -1106,7 +1106,7 @@ console_vt_response(int argc, VALUE *argv, VALUE io)
static VALUE
console_cursor_pos(VALUE io)
{
VALUE query = rb_str_new_cstr("\e[6n");
VALUE query = rb_str_new_cstr("\033[6n");
VALUE resp = console_vt_response(1, &query, io);
VALUE row, column, term;
unsigned int r, c;