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
    PostInstallerF
    PostInstallerF
    PostInstallerF will install all the
    software that Fedora Linux and others
    doesn't include by default, after
    running Fedora for the first time. Its
    easy for...
    Download PostInstallerF
  • 2
    strace
    strace
    The strace project has been moved to
    https://strace.io. strace is a
    diagnostic, debugging and instructional
    userspace tracer for Linux. It is used
    to monitor a...
    Download strace
  • 3
    gMKVExtractGUI
    gMKVExtractGUI
    A GUI for mkvextract utility (part of
    MKVToolNix) which incorporates most (if
    not all) functionality of mkvextract and
    mkvinfo utilities. Written in C#NET 4.0,...
    Download gMKVExtractGUI
  • 4
    JasperReports Library
    JasperReports Library
    JasperReports Library is the
    world's most popular open source
    business intelligence and reporting
    engine. It is entirely written in Java
    and it is able to ...
    Download JasperReports Library
  • 5
    Frappe Books
    Frappe Books
    Frappe Books is a free and open source
    desktop book-keeping software that's
    simple and well-designed to be used by
    small businesses and freelancers. It'...
    Download Frappe Books
  • 6
    Numerical Python
    Numerical Python
    NEWS: NumPy 1.11.2 is the last release
    that will be made on sourceforge. Wheels
    for Windows, Mac, and Linux as well as
    archived source distributions can be fou...
    Download Numerical Python
  • More »

Linux commands

Ad