summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/history.cpp
Unidiff
Diffstat (limited to 'noncore/apps/opie-console/history.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/history.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/apps/opie-console/history.cpp b/noncore/apps/opie-console/history.cpp
index 3b82d16..226a0a2 100644
--- a/noncore/apps/opie-console/history.cpp
+++ b/noncore/apps/opie-console/history.cpp
@@ -46,57 +46,57 @@
46 of cells and line/column indexed read access to the scroll 46 of cells and line/column indexed read access to the scroll
47 at constant costs. 47 at constant costs.
48 48
49FIXME: some complain about the history buffer comsuming the 49FIXME: some complain about the history buffer comsuming the
50 memory of their machines. This problem is critical 50 memory of their machines. This problem is critical
51 since the history does not behave gracefully in cases 51 since the history does not behave gracefully in cases
52 where the memory is used up completely. 52 where the memory is used up completely.
53 53
54 I put in a workaround that should handle it problem 54 I put in a workaround that should handle it problem
55 now gracefully. I'm not satisfied with the solution. 55 now gracefully. I'm not satisfied with the solution.
56 56
57FIXME: Terminating the history is not properly indicated 57FIXME: Terminating the history is not properly indicated
58 in the menu. We should throw a signal. 58 in the menu. We should throw a signal.
59 59
60FIXME: There is noticable decrease in speed, also. Perhaps, 60FIXME: There is noticable decrease in speed, also. Perhaps,
61 there whole feature needs to be revisited therefore. 61 there whole feature needs to be revisited therefore.
62 Disadvantage of a more elaborated, say block-oriented 62 Disadvantage of a more elaborated, say block-oriented
63 scheme with wrap around would be it's complexity. 63 scheme with wrap around would be it's complexity.
64*/ 64*/
65 65
66//FIXME: tempory replacement for tmpfile 66//FIXME: tempory replacement for tmpfile
67// this is here one for debugging purpose. 67// this is here one for debugging purpose.
68 68
69//#define tmpfile xTmpFile 69//#define tmpfile xTmpFile
70 70/*
71FILE* xTmpFile() 71FILE* xTmpFile()
72{ 72{
73 static int fid = 0; 73 static int fid = 0;
74 char fname[80]; 74 char fname[80];
75 sprintf(fname,"TmpFile.%d",fid++); 75 sprintf(fname,"TmpFile.%d",fid++);
76 return fopen(fname,"w"); 76 return fopen(fname,"w");
77} 77}
78 78*/
79 79
80// History Buffer /////////////////////////////////////////// 80// History Buffer ///////////////////////////////////////////
81 81
82/* 82/*
83 A Row(X) data type which allows adding elements to the end. 83 A Row(X) data type which allows adding elements to the end.
84*/ 84*/
85 85
86HistoryBuffer::HistoryBuffer() 86HistoryBuffer::HistoryBuffer()
87{ 87{
88 ion = -1; 88 ion = -1;
89 length = 0; 89 length = 0;
90} 90}
91 91
92HistoryBuffer::~HistoryBuffer() 92HistoryBuffer::~HistoryBuffer()
93{ 93{
94 setScroll(FALSE); 94 setScroll(FALSE);
95} 95}
96 96
97void HistoryBuffer::setScroll(bool on) 97void HistoryBuffer::setScroll(bool on)
98{ 98{
99 if (on == hasScroll()) return; 99 if (on == hasScroll()) return;
100 100
101 if (on) 101 if (on)
102 { 102 {