Coverage Report

Created: 2026-01-09 06:13

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/mosh/src/terminal/parseraction.cc
Line
Count
Source
1
/*
2
    Mosh: the mobile shell
3
    Copyright 2012 Keith Winstein
4
5
    This program is free software: you can redistribute it and/or modify
6
    it under the terms of the GNU General Public License as published by
7
    the Free Software Foundation, either version 3 of the License, or
8
    (at your option) any later version.
9
10
    This program is distributed in the hope that it will be useful,
11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
    GNU General Public License for more details.
14
15
    You should have received a copy of the GNU General Public License
16
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
18
    In addition, as a special exception, the copyright holders give
19
    permission to link the code of portions of this program with the
20
    OpenSSL library under certain conditions as described in each
21
    individual source file, and distribute linked combinations including
22
    the two.
23
24
    You must obey the GNU General Public License in all respects for all
25
    of the code used other than OpenSSL. If you modify file(s) with this
26
    exception, you may extend this exception to your version of the
27
    file(s), but you are not obligated to do so. If you do not wish to do
28
    so, delete this exception statement from your version. If you delete
29
    this exception statement from all source files in the program, then
30
    also delete it here.
31
*/
32
33
#include <cstdio>
34
#include <cwctype>
35
36
#include "src/terminal/parseraction.h"
37
#include "src/terminal/terminal.h"
38
39
using namespace Parser;
40
41
void Print::act_on_terminal( Terminal::Emulator* emu ) const
42
0
{
43
0
  emu->print( this );
44
0
}
45
46
void Execute::act_on_terminal( Terminal::Emulator* emu ) const
47
0
{
48
0
  emu->execute( this );
49
0
}
50
51
void Clear::act_on_terminal( Terminal::Emulator* emu ) const
52
0
{
53
0
  emu->dispatch.clear( this );
54
0
}
55
56
void Param::act_on_terminal( Terminal::Emulator* emu ) const
57
0
{
58
0
  emu->dispatch.newparamchar( this );
59
0
}
60
61
void Collect::act_on_terminal( Terminal::Emulator* emu ) const
62
0
{
63
0
  emu->dispatch.collect( this );
64
0
}
65
66
void CSI_Dispatch::act_on_terminal( Terminal::Emulator* emu ) const
67
0
{
68
0
  emu->CSI_dispatch( this );
69
0
}
70
71
void Esc_Dispatch::act_on_terminal( Terminal::Emulator* emu ) const
72
0
{
73
0
  emu->Esc_dispatch( this );
74
0
}
75
76
void OSC_Put::act_on_terminal( Terminal::Emulator* emu ) const
77
0
{
78
0
  emu->dispatch.OSC_put( this );
79
0
}
80
81
void OSC_Start::act_on_terminal( Terminal::Emulator* emu ) const
82
0
{
83
0
  emu->dispatch.OSC_start( this );
84
0
}
85
86
void OSC_End::act_on_terminal( Terminal::Emulator* emu ) const
87
0
{
88
0
  emu->OSC_end( this );
89
0
}
90
91
void UserByte::act_on_terminal( Terminal::Emulator* emu ) const
92
4.19M
{
93
4.19M
  emu->dispatch.terminal_to_host.append( emu->user.input( this, emu->fb.ds.application_mode_cursor_keys ) );
94
4.19M
}
95
96
void Resize::act_on_terminal( Terminal::Emulator* emu ) const
97
0
{
98
0
  emu->resize( width, height );
99
0
}