MIRROR: javascript for ๐Ÿœ's, a tiny runtime with big ambitions
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

prevent assignment to row/col error

-6
-6
src/modules/process.c
··· 682 682 683 683 #ifndef _WIN32 684 684 static void on_sigwinch(uv_signal_t *handle, int signum) { 685 - (void)handle; (void)signum; 686 685 if (!rt->js) return; 687 686 688 687 ant_value_t process_obj = js_get(rt->js, js_glob(rt->js), "process"); ··· 690 689 691 690 ant_value_t stdout_obj = js_get(rt->js, process_obj, "stdout"); 692 691 if (!is_special_object(stdout_obj)) return; 693 - 694 - int rows = 0, cols = 0; 695 - get_tty_size(STDOUT_FILENO, &rows, &cols); 696 - js_set(rt->js, stdout_obj, "rows", js_mknum(rows)); 697 - js_set(rt->js, stdout_obj, "columns", js_mknum(cols)); 698 692 699 693 emit_stdio_event(&stdout_events, "resize", NULL, 0); 700 694 }