Skip to content

Commit

Permalink
FAQ update
Browse files Browse the repository at this point in the history
  • Loading branch information
gansm committed Sep 3, 2024
1 parent 0d691f1 commit dea7b94
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
10 changes: 10 additions & 0 deletions doc/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,13 @@ With Ctrl-L you can clear and redraw all information on the terminal screen.
This may be necessary if a background program overwrites the displayed
widgets with other characters.


How to disable mouse tracking and the non-scrollable alternate screen buffer in the GNU Debugger (GDB)
------------------------------------------------------------------------------------------------------

If you are using an xterm-compatible terminal, you can disable mouse tracking and re-enable the terminal scroll buffer by resetting the terminal settings. You can use the following command in the GNU Debugger to do this:

```
(gdb) printf "%s\n", "\033c\033]104\007"
```

14 changes: 7 additions & 7 deletions test/eventloop-monitor-test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ class EventloopMonitorTest : public CPPUNIT_NS::TestFixture
void exceptionTest();

private:
void keyboardInput (const std::string);
void keyboardInput (std::string&&);
void drainStdin();

// Adds code needed to register the test suite
Expand Down Expand Up @@ -1034,18 +1034,18 @@ void EventloopMonitorTest::exceptionTest()
}

//----------------------------------------------------------------------
void EventloopMonitorTest::keyboardInput (const std::string s)
void EventloopMonitorTest::keyboardInput (std::string&& s)
{
// Simulates keystrokes

const auto input = std::move(s);
const char EOT = 0x04; // End of Transmission
auto stdin_no = finalcut::FTermios::getStdIn();
fflush(stdout);
const auto stdin_no = finalcut::FTermios::getStdIn();

std::string::const_iterator iter;
iter = s.cbegin();
fflush(stdout);
std::string::const_iterator iter = input.cbegin();

while ( iter != s.cend() )
while ( iter != input.cend() )
{
char c = *iter;

Expand Down
2 changes: 1 addition & 1 deletion test/fwidget-test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2573,7 +2573,7 @@ void FWidgetTest::closeWidgetTest()
class TestWidget : public finalcut::FWidget
{
public:
TestWidget (finalcut::FWidget* parent = nullptr)
explicit TestWidget (finalcut::FWidget* parent = nullptr)
: finalcut::FWidget{parent}
{ }

Expand Down

0 comments on commit dea7b94

Please sign in to comment.