/* dump the stack */ void dbgds(dbgcxdef *ctx) { /* don't do stack dumps if we're running from the debugger command line */ if (ctx->dbgcxflg & DBGCXFIND) return; tioflush(ctx->dbgcxtio); tioshow(ctx->dbgcxtio); dbgstktr(ctx, dbgdsdisp, ctx->dbgcxtio, -1, FALSE, TRUE); tioflush(ctx->dbgcxtio); ctx->dbgcxfcn = ctx->dbgcxdep = 0; }
static void tcapclose(void) { putpad(tgoto(CM, 0, term.t_nrow)); putpad(TE); tioflush(); tiorestore(); }
static void dbgdsdisp(void *ctx, const char *buf, int bufl) { if (buf[0] == '\n') tioflush((tiocxdef *)ctx); else tioputslen((tiocxdef *)ctx, (char *)buf, bufl); }
static void tcapkopen(void) { putpad(TI); tioflush(); ttrow = 999; ttcol = 999; sgarbf = TRUE; }
static void tcapkclose(void) { putpad(TE); tioflush(); }