This file is indexed.

/usr/share/yacas/include/unixcommandline.h is in yacas 1.3.3-2.

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
34
35
36
37
38
39
#ifndef __unixcommandline_h__
#define __unixcommandline_h__

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <signal.h>
#include <unistd.h>
#include <termios.h>
#include <time.h>

#include "yacasbase.h"
#include "commandline.h"

/** Unix command line class, using assorted termios functionality
 *  and sending ansi character sequences to the console.
 */
class CUnixCommandLine : public CCommandLine
{
public:
  CUnixCommandLine();
  ~CUnixCommandLine();
public:
  virtual LispInt GetKey();
  virtual void NewLine();
  virtual void ShowLine(const LispChar * prompt,LispInt promptlen,LispInt cursor);
  virtual void Pause();
  virtual void MaxHistoryLinesSaved(LispInt aNrLines);
private:
  unsigned char term_chars[NCCS];
  struct termios orig_termio, rl_termio;
  LispInt _cursor_line, _last_line;
public:
  LispInt iMaxLines;
};


#endif