functions.pl

来自「Unix下的MUD客户端程序」· PL 代码 · 共 21 行

PL
21
字号
sub run {    my $x = join(" ", @_);    # Protect against accidents    $x =~ s/;/\\;/;    $x =~ s/\n/ /;    $x = $x . "\n";    syswrite INTERP, $x, length($x);}# This value is the file descriptor of the interpreter pipe and is set by# mclopen(INTERP, ">&$interpreterPipe") or die;# Create wrappers for other mcl functionsforeach (qw/load open close reopen quit speedwalk bell echo status exec window kill print alias action send help eval run setinput clear prompt send_unbuffered/) {    eval "sub mcl_$_ { run (\"${commandCharacter}$_ \" . join(' ', \@_)); }";}1;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?