📄 line.vtc
字号:
LINE ?:= alloc(5, Twtype);LINE->name = "Line";LINE->init = .nothing;func line_netread(line) [style] { style = check_triggers(line); if (style != S_NOHISTGAG) line_output(line, style);}LINE->netread = .line_netread;wrapspace = (wrapspace == NULL) ? 1 : wrapspace;func line_output(s / style, w) [w] { style ?:= S_NORM; w ?:= cur_win ? : active; if (cur_rmt->logfile) fwrite(cur_rmt->logfile, s + "\n"); add_hist(s, style); if (style == S_GAG) return; if (line_numbers) { printf(w, "%6d ", lineno - 1); output(wrap(s, cols - 1, 7, 7), style, w); } else output(wrap(s, cols - 1, wrapspace, 0), style, w);}LINE->save = .std_base_save;LINE->list = .std_base_list;LINE->print = .std_base_print;LINE->outbound = .normal_outbound;func add_line(name, addr, port) { add_world(new_world(LINE, name, addr, port));}LINE->add = .add_line;func Add_line(name, addr, port) { add_line(name, addr, atoi(port)); }add_cmd("add_line", 3, .Add_line, "/add_line <name> <addr> <port>");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -