src/server/ssh_server/ssh_callbacks.cc
/**
 * Handle SSH channel PTY resize request
 */
Handle SSH channel PTY resize request
Handle SSH channel PTY resize request
int channel_pty_window_change_cb(ssh_session session, ssh_channel channel,
                                 int width, int height, int pxwidth, int pwheight,
                                 void *userdata)
{
	(void)pxwidth;
	(void)pwheight;
	using namespace Genode;
	Ssh::Server &server = *reinterpret_cast<Ssh::Server*>(userdata);
	Ssh::Session *p = server.lookup_session(session);
	if (!p || p->channel != channel || !p->terminal) { return SSH_ERROR; }
	Ssh::Terminal &conn = *p->terminal;
	conn.size(Terminal::Session::Size(width, height));
	conn.notify_size_changed();
	return SSH_OK;
}
int channel_pty_window_change_cb ( ssh_session session , ssh_channel channel , int width , int height , int pxwidth , int pwheight , void * userdata ) { ( void ) pxwidth ; ( void ) pwheight ; using namespace Genode ; Ssh :: Server & server = * reinterpret_cast < Ssh :: Server * > ( userdata ) ; Ssh :: Session * p = server . lookup_session ( session ) ; if ( ! p || p -> channel != channel || ! p -> terminal ) { return SSH_ERROR ; } Ssh :: Terminal & conn = * p -> terminal ; conn . size ( Terminal :: Session :: Size ( width , height ) ) ; conn . notify_size_changed ( ) ; return SSH_OK ; }
Handle SSH channel PTY resize request
Handle SSH channel PTY resize request