This file is indexed.

/usr/include/yacas/unixcommandline.h is in yacas 1.3.6-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef YACAS_UNIXCOMMANDLINE_H
#define YACAS_UNIXCOMMANDLINE_H

#include "commandline.h"

#include <termios.h>


/** Unix command line class, using assorted termios functionality
 *  and sending ansi character sequences to the console.
 */
class CUnixCommandLine : public CCommandLine
{
public:
    CUnixCommandLine();
    ~CUnixCommandLine();

    LispInt GetKey();
    void NewLine();
    void ShowLine(const std::string& prompt, unsigned cursor);
    void Pause();
    void MaxHistoryLinesSaved(std::size_t);

private:
    unsigned char term_chars[NCCS];
    struct termios orig_termio, rl_termio;
    int _cursor_line, _last_line;

    std::size_t _max_lines;
};


#endif