EnglishFrenchSpanish

OnWorks favicon

termdebug - Online in the Cloud

Run termdebug in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command termdebug that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


termdebug - utilities for debugging interactive terminal programs.

DESCRIPTION


termdebug is a set of utilities to record and replay the input and output of terminal
programs. Its main goal is to aid in developing and debugging terminal programs. Other
programs such as termrec/termplay, nethack-recorder/player and script/scriptreplay only
record the output. However, when debugging an interactive terminal program, the input is
often as important as the output.

termdebug consists of the following utilities:

tdrecord
Starts a program and records its input and output.

tdreplay
Starts a program and replays the input of a recording.

tdview Shows the output of a recording.

tdrerecord
Starts a program and replays the input of a recording, recording the input and
output to create a new recording.

tdcompare
Compares two recordings to determine if there are differences. The reported
differences can be either on the exact input/output behaviour, or on the visual
behaviour.

GRAMMAR


The recordings made with the termdebug utilities use a simple format. Each recording
consists of a set of directives with arguments. White space is not important. The language
supports line comments which start at # and run to the end of the line. The only other
elements are numbers (a sequence of digits) and strings. Strings start and end with a
double qoute, and use C-style escaping. The following directives are known:

env name value
Set the value of environment variable name to value. name and value are strings.
All env directives must appear before the start directive.

window_size columns lines [delay [> min_delay]]
Set the terminal window size to columns by lines_. May be specified both before and
after the start directive. On optional delay in milliseconds may be specified.
Furthermore, min_delay may be specified to force a wait of at least min_delay
milliseconds regardless of program options changing the key delay.

start client [argument+]
The start directive indicates the client to start. Zero or more arguments for the
client may be specified. client and argument are strings.

require_version version
Tell the interpreter that the script langauge version must be version. The current
version is 1.

The following directives may only appear after the start directive:

expect string+
Indicate what output to expect. One or more strings may be specified.

send (delay string [> min_delay)+
Specify one or more key strings to send to the client program. delay is the delay
in miliseconds to wait before sending string. Furthermore, min_delay may be
specified to force a wait of at least min_delay milliseconds regardless of program
options changing the key delay.

expect_exit status
Signal that the client should stop at this point, returning status.

expect_suspend
Indicate that the client should suspend itself at this point.

interact
Indicate the interaction with the user should be started at this point. Any
directives after this point will be ignored.

Use termdebug online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    SAGA GIS
    SAGA GIS
    SAGA - System for Automated
    Geoscientific Analyses - is a Geographic
    Information System (GIS) software with
    immense capabilities for geodata
    processing and ana...
    Download SAGA GIS
  • 2
    Toolbox for Java/JTOpen
    Toolbox for Java/JTOpen
    The IBM Toolbox for Java / JTOpen is a
    library of Java classes supporting the
    client/server and internet programming
    models to a system running OS/400,
    i5/OS, o...
    Download Toolbox for Java/JTOpen
  • 3
    D3.js
    D3.js
    D3.js (or D3 for Data-Driven Documents)
    is a JavaScript library that allows you
    to produce dynamic, interactive data
    visualizations in web browsers. With D3
    you...
    Download D3.js
  • 4
    Shadowsocks
    Shadowsocks
    A fast tunnel proxy that helps you
    bypass firewalls This is an application
    that can also be fetched from
    https://sourceforge.net/projects/shadowsocksgui/.
    It ha...
    Download Shadowsocks
  • 5
    GLPI Themes
    GLPI Themes
    Download release at
    https://github.com/stdonato/glpi-modifications/
    Color themes for GLPI 0.84 and 0.85 New
    Modifications for GLPI This is an
    application that c...
    Download GLPI Themes
  • 6
    SMPlayer
    SMPlayer
    SMPlayer is a free media player for
    Windows and Linux with built-in codecs
    that can also play YouTube videos. One
    of the most interesting features of
    SMPlayer:...
    Download SMPlayer
  • More »

Linux commands

Ad