Home
last modified time | relevance | path

Searched refs:tty (Results 1 – 18 of 18) sorted by relevance

/libuv/src/win/
H A Dtty.c256 tty->tty.rd.unused_ = NULL; in uv_tty_init()
257 tty->tty.rd.read_line_buffer = uv_null_buf_; in uv_tty_init()
258 tty->tty.rd.read_raw_wait = NULL; in uv_tty_init()
261 tty->tty.rd.last_key_len = 0; in uv_tty_init()
262 tty->tty.rd.last_key_offset = 0; in uv_tty_init()
263 tty->tty.rd.last_utf16_high_surrogate = 0; in uv_tty_init()
264 memset(&tty->tty.rd.last_input_record, 0, sizeof tty->tty.rd.last_input_record); in uv_tty_init()
270 tty->tty.wr.utf8_bytes_left = 0; in uv_tty_init()
271 tty->tty.wr.utf8_codepoint = 0; in uv_tty_init()
274 tty->tty.wr.previous_eol = 0; in uv_tty_init()
[all …]
/libuv/src/unix/
H A Dtty.c210 uv__stream_init(loop, (uv_stream_t*) tty, UV_TTY); in uv_tty_init()
220 r = uv__stream_try_select((uv_stream_t*) tty, &fd); in uv_tty_init()
225 uv__queue_remove(&tty->handle_queue); in uv_tty_init()
238 uv__stream_open((uv_stream_t*) tty, fd, flags); in uv_tty_init()
239 tty->mode = UV_TTY_MODE_NORMAL; in uv_tty_init()
287 if (tty->mode == (int) mode) in uv_tty_set_mode()
290 fd = uv__stream_fd(tty); in uv_tty_set_mode()
293 rc = tcgetattr(fd, &tty->orig_termios); in uv_tty_set_mode()
305 orig_termios = tty->orig_termios; in uv_tty_set_mode()
312 tmp = tty->orig_termios; in uv_tty_set_mode()
[all …]
/libuv/test/
H A Dtest-handle-fileno.c54 uv_tty_t tty; in TEST_IMPL() local
108 r = uv_tty_init(loop, &tty, tty_fd, 0); in TEST_IMPL()
110 ASSERT(uv_is_readable((uv_stream_t*) &tty)); in TEST_IMPL()
111 ASSERT(!uv_is_writable((uv_stream_t*) &tty)); in TEST_IMPL()
112 r = uv_fileno((uv_handle_t*) &tty, &fd); in TEST_IMPL()
114 uv_close((uv_handle_t*) &tty, NULL); in TEST_IMPL()
115 r = uv_fileno((uv_handle_t*) &tty, &fd); in TEST_IMPL()
117 ASSERT(!uv_is_readable((uv_stream_t*) &tty)); in TEST_IMPL()
118 ASSERT(!uv_is_writable((uv_stream_t*) &tty)); in TEST_IMPL()
H A Dtest-osx-select.c55 uv_tty_t tty; in TEST_IMPL() local
64 r = uv_tty_init(uv_default_loop(), &tty, fd, 1); in TEST_IMPL()
67 uv_read_start((uv_stream_t*) &tty, alloc_cb, read_cb); in TEST_IMPL()
94 uv_tty_t tty; in TEST_IMPL() local
117 r = uv_tty_init(uv_default_loop(), &tty, fd, 1); in TEST_IMPL()
120 r = uv_read_start((uv_stream_t*) &tty, alloc_cb, read_cb); in TEST_IMPL()
H A Dtest-tty.c44 TEST_IMPL(tty) { in TEST_IMPL() argument
348 uv_tty_t tty; in TEST_IMPL() local
357 ASSERT_EQ(UV_EINVAL, uv_tty_init(&loop, &tty, fd, 1)); in TEST_IMPL()
360 ASSERT_EQ(UV_EINVAL, uv_tty_init(&loop, &tty, fd, 1)); in TEST_IMPL()
367 ASSERT_EQ(UV_EINVAL, uv_tty_init(&loop, &tty, fd, 1)); in TEST_IMPL()
380 ASSERT_OK(uv_tty_init(&loop, &tty, fd, 1)); in TEST_IMPL()
382 ASSERT(uv_is_readable((uv_stream_t*) &tty)); in TEST_IMPL()
383 ASSERT(uv_is_writable((uv_stream_t*) &tty)); in TEST_IMPL()
384 uv_close((uv_handle_t*) &tty, NULL); in TEST_IMPL()
385 ASSERT(!uv_is_readable((uv_stream_t*) &tty)); in TEST_IMPL()
[all …]
H A Dtest-ipc-send-recv.c40 uv_tty_t tty; member
H A Dtest-list.h50 TEST_DECLARE (tty)
628 TEST_ENTRY (tty)
/libuv/docs/code/tty/
H A Dmain.c7 uv_tty_t tty; variable
16 uv_tty_init(loop, &tty, STDOUT_FILENO, 0); in main()
17 uv_tty_set_mode(&tty, UV_TTY_MODE_NORMAL); in main()
22 uv_write(&req1, (uv_stream_t*) &tty, &buf1, 1, NULL); in main()
27 uv_write(&req, (uv_stream_t*) &tty, &buf, 1, NULL); in main()
/libuv/docs/code/tty-gravity/
H A Dmain.c7 uv_tty_t tty; variable
23 uv_write(&write_req, (uv_stream_t*) &tty, &buf, 1, NULL); in update()
35 uv_tty_init(loop, &tty, STDOUT_FILENO, 0); in main()
36 uv_tty_set_mode(&tty, 0); in main()
38 if (uv_tty_get_winsize(&tty, &width, &height)) { in main()
/libuv/docs/code/
H A DCMakeLists.txt36 tty
37 tty-gravity
/libuv/docs/src/
H A Dapi.rst25 tty
H A Dtty.rst78 refers to a TTY. This lets libuv put the tty in non-blocking mode without
79 affecting other processes that share the tty.
92 `/dev/tty` instead.
/libuv/
H A DMakefile.am87 src/win/tty.c \
116 src/unix/tty.c \
304 test/test-tty-duplicate-key.c \
305 test/test-tty-escape-sequence-processing.c \
306 test/test-tty.c \
H A DChangeLog64 * doc: fix tty example segfault (hiiizxf)
1647 * test: Test EBADF tty handling (Kevin Adler)
2334 * win: fix duplicate tty vt100 fn key (erw7)
2497 * win,tty: fix uv_tty_close() (Bartosz Sosnowski)
2559 * win,tty: remove deadcode (Jameson Nash)
3834 * win,tty: fix read stop in line mode (João Reis)
4206 * win,tty: don't close fd 0-2 (Bert Belder)
4359 * doc: fix long lines in tty.rst (Ben Noordhuis)
4451 * tty: fix build for SmartOS (Julien Gilli)
4543 * win,tty: support uv_try_write (Bert Belder)
[all …]
H A DCMakeLists.txt221 src/win/tty.c
253 src/unix/tty.c
677 test/test-tty-duplicate-key.c
678 test/test-tty-escape-sequence-processing.c
679 test/test-tty.c
/libuv/docs/src/guide/
H A Dutilities.rst393 .. _Other: http://docs.libuv.org/en/v1.x/tty.html#c.uv_tty_mode_t
405 .. rubric:: tty/main.c
406 .. literalinclude:: ../../code/tty/main.c
416 .. rubric:: tty-gravity/main.c
417 .. literalinclude:: ../../code/tty-gravity/main.c
/libuv/include/uv/
H A Dwin.h535 } tty;
/libuv/include/
H A Duv.h176 XX(TTY, tty) \

Completed in 50 milliseconds