We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a30e3eb commit 757b0f1Copy full SHA for 757b0f1
src/terminal/parseraction.cc
@@ -30,8 +30,12 @@
30
also delete it here.
31
*/
32
33
+#include <unistd.h>
34
#include <wctype.h>
35
36
+#include <fstream>
37
+#include <sstream>
38
+
39
#include "parseraction.h"
40
#include "terminal.h"
41
@@ -101,6 +105,13 @@ void Resize::act_on_terminal( Terminal::Emulator *emu ) const
101
105
void ChWidthOverlay::act_on_terminal( Terminal::Emulator *emu ) const
102
106
{
103
107
emu->chwidth_overlay( overlay );
108
+ // XXX debug/exposition-- drop a copy of the overlay.
109
+ {
110
+ std::ostringstream s;
111
+ s << "/tmp/chwidth_overlay_" << getpid();
112
+ std::ofstream f(s.str().c_str());
113
+ f << overlay;
114
+ }
104
115
}
116
117
void HoldSession::act_on_terminal( Terminal::Emulator *emu ) const
0 commit comments