summaryrefslogtreecommitdiff
path: root/ext/io
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2019-09-25 09:48:02 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2019-09-25 09:48:44 +0900
commitca58e834007199929e41fca97f3c103dfbab4bb1 (patch)
tree3091c4d33d09bc8e93a9522a68877141cacfa2fe /ext/io
parentc60451d9cd8ff69095acf826b11ea01557cc9b8b (diff)
Do not use of non-standard escape character '\e'
Diffstat (limited to 'ext/io')
-rw-r--r--ext/io/console/console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/io/console/console.c b/ext/io/console/console.c
index 26047156050..59a14d893ad 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)
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;