ruby-changes:57890
From: Kazuhiro <ko1@a...>
Date: Wed, 25 Sep 2019 09:49:00 +0900 (JST)
Subject: [ruby-changes:57890] ca58e83400 (master): Do not use of non-standard escape character '\e'
https://git.ruby-lang.org/ruby.git/commit/?id=ca58e83400 From ca58e834007199929e41fca97f3c103dfbab4bb1 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA <zn@m...> Date: Wed, 25 Sep 2019 09:48:02 +0900 Subject: Do not use of non-standard escape character '\e' diff --git a/ext/io/console/console.c b/ext/io/console/console.c index 2604715..59a14d8 100644 --- a/ext/io/console/console.c +++ b/ext/io/console/console.c @@ -1106,7 +1106,7 @@ console_vt_response(int argc, VALUE *argv, VALUE io) https://github.com/ruby/ruby/blob/trunk/ext/io/console/console.c#L1106 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; -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/