[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.3.2.3 Echo Keyboard to Output ($L)

$L

The Echo Keyboard to Output command provides the user with an easy way enter data directly into the outfile at run time. The standard C library fgets() function is used to collect a string from the console, so basic editing capabilities should be present. The string is written, with newline, into the output file.

This command was not designed to be used for subject response, and does not update the COGVAR_KEY or COGVAR_TIME Cogsys variables. It does not attempt to measure the time it takes to enter the string.

Name:
Echo Keyboard to Output
Class:
Direct Keyboard Input
Code:
$L
Syntax:
$L
System:
Collects a string from keyboard until the subject presses ENTER. The string may be no longer than TMP_STR_LEN characters.

Output:
The string entered is written to output.
Requires:
Although this command will work in any mode, for the user to see the characters being typed, Cogsys must be in a text mode.

Test Files:
`KOUT_T01.IN'
tests basic operation

Examples:

input
$L
subject
Enters hi there!
output
hi there!



This document was generated by Usman Muzaffar on June, 28 2000 using texi2html