Esempio n. 1
0
File: xterm.c Progetto: akat1/impala
static int
test_report_ops(MENU_ARGS)
{
    char *report;
    int row = 3;
    int col = 10;

    vt_move(1,1);
    println("Test of Window reporting.");
    set_tty_raw(TRUE);
    set_tty_echo(FALSE);

    vt_move(row++,1);
    println("Report icon label:");
    vt_move(row, col);
    brc(20, 't'); /* report icon label */
    report = instr();
    row = chrprint2(report, row, col);

    vt_move(row++,1);
    println("Report window label:");
    vt_move(row, col);
    brc(21, 't'); /* report window label */
    report = instr();
    row = chrprint2(report, row, col);

    vt_move(row++,1);
    println("Report size of window (chars):");
    vt_move(row++, col);
    brc(18, 't'); /* report window's text-size */
    report = instr();
    chrprint(report);

    vt_move(row++,1);
    println("Report size of window (pixels):");
    vt_move(row++, col);
    brc(14, 't'); /* report window's pixel-size */
    report = instr();
    chrprint(report);

    vt_move(row++,1);
    println("Report position of window (pixels):");
    vt_move(row++, col);
    brc(13, 't'); /* report window's pixel-size */
    report = instr();
    chrprint(report);

    vt_move(row++,1);
    println("Report state of window (normal/iconified):");
    vt_move(row, col);
    brc(11, 't'); /* report window's pixel-size */
    report = instr();
    chrprint(report);

    vt_move(20,1);
    restore_ttymodes();
    return MENU_HOLD;
}
Esempio n. 2
0
File: main.c Progetto: hharte/vttest
void
chrprint(const char *s)
{
  chrprint2(s, 1, 1);
}