rename •term.Raw→•term.RawMode
This commit is contained in:
parent
0177680ddb
commit
b7ec175901
@ -12,7 +12,7 @@
|
||||
/* sysfn.c*/M(repr,"•Repr") M(fmt,"•Fmt") A(asrt,"!") A(casrt,"!") M(out,"•Out") M(show,"•Show") A(bqn,"•BQN") A(sh,"•SH") M(fromUtf8,"•FromUTF8") M(currentError,"•CurrentError") \
|
||||
/* sysfn.c*/D(cmp,"•Cmp") A(hash,"•Hash") M(unixTime,"•UnixTime") M(monoTime,"•MonoTime") M(delay,"•Delay") M(makeRand,"•MakeRand") M(reBQN,"•ReBQN") M(exit,"•Exit") M(getLine,"•GetLine") \
|
||||
/* sysfn.c*/M(fName,"•file.Name") \
|
||||
/* sysfn.c*/M(tRaw,"•term.Raw") M(tFlush,"•term.Flush") M(tCharB,"•term.CharB") M(tCharN,"•term.CharN") M(tOutRaw,"•term.OutRaw") M(tErrRaw,"•term.ErrRaw") \
|
||||
/* sysfn.c*/M(tRawMode,"•term.RawMode") M(tFlush,"•term.Flush") M(tCharB,"•term.CharB") M(tCharN,"•term.CharN") M(tOutRaw,"•term.OutRaw") M(tErrRaw,"•term.ErrRaw") \
|
||||
/* inverse.c*/M(setInvReg, "(SetInvReg)") M(setInvSwap, "(SetInvSwap)") M(nativeInvReg, "(NativeInvReg)") M(nativeInvSwap, "(NativeInvSwap)") \
|
||||
/*internal.c*/M(itype,"•internal.Type") M(elType,"•internal.ElType") M(refc,"•internal.Refc") M(isPure,"•internal.IsPure") A(info,"•internal.Info") M(heapDump,"•internal.HeapDump") \
|
||||
/*internal.c*/M(squeeze,"•internal.Squeeze") M(deepSqueeze,"•internal.DeepSqueeze") \
|
||||
|
||||
@ -875,7 +875,7 @@ B sh_c1(B t, B x) { return sh_c2(t, bi_N, x); }
|
||||
#if __has_include(<termios.h>)
|
||||
#include<termios.h>
|
||||
#include <fcntl.h>
|
||||
B tRaw_c1(B t, B x) {
|
||||
B tRawMode_c1(B t, B x) {
|
||||
struct termios term;
|
||||
tcgetattr(STDIN_FILENO, &term);
|
||||
if (o2b(x)) term.c_lflag&= ~(ICANON | ECHO);
|
||||
@ -918,8 +918,8 @@ static B termNS;
|
||||
B getTermNS() {
|
||||
if (termNS.u == 0) {
|
||||
#define F(X) inc(bi_##X),
|
||||
Body* d = m_nnsDesc("flush", "raw", "charb", "charn", "outraw", "errraw");
|
||||
termNS = m_nns(d,F(tFlush)F(tRaw)F(tCharB)F(tCharN)F(tOutRaw)F(tErrRaw));
|
||||
Body* d = m_nnsDesc("flush", "rawmode", "charb", "charn", "outraw", "errraw");
|
||||
termNS = m_nns(d,F(tFlush)F(tRawMode)F(tCharB)F(tCharN)F(tOutRaw)F(tErrRaw));
|
||||
#undef F
|
||||
gc_add(termNS);
|
||||
}
|
||||
|
||||
@ -3,4 +3,4 @@
|
||||
B evalJIT(Body* b, Scope* sc, u8* ptr) { thrM("JIT: Not supported"); }
|
||||
Nvm_res m_nvm(Body* b) { thrM("JIT: Not supported"); }
|
||||
void nvm_free(u8* ptr) { thrM("JIT: Not supported"); }
|
||||
void mmX_dumpHeap() { }
|
||||
void mmX_dumpHeap() { }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user