Back to index

texmacs  1.0.7.15
Defines | Functions
menus.cpp File Reference
#include <iostream>

Go to the source code of this file.

Defines

#define DATA_BEGIN   ((char) 2)
#define DATA_END   ((char) 5)
#define DATA_ESCAPE   ((char) 27)

Functions

int main ()

Define Documentation

#define DATA_BEGIN   ((char) 2)

Definition at line 16 of file menus.cpp.

#define DATA_END   ((char) 5)

Definition at line 17 of file menus.cpp.

#define DATA_ESCAPE   ((char) 27)

Definition at line 18 of file menus.cpp.


Function Documentation

int main ( )

Definition at line 21 of file menus.cpp.

        {
  cout << DATA_BEGIN << "verbatim:";
  cout << "Enter the name of a menu to add at each prompt";
  cout << DATA_END;
  cout.flush ();

  while (true) {
    char buffer[100];
    cin.getline (buffer, 100, '\n');
    cout << DATA_BEGIN << "verbatim:";
    cout << DATA_BEGIN << "command:(menus-add \""
        << buffer << "\")" << DATA_END;
    cout << "Added " << buffer << " to menu";
    cout << DATA_END;
    cout.flush ();
  }
  return 0;
}

Here is the call graph for this function: