summaryrefslogtreecommitdiff
path: root/pico/osdep/terminal.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2013-05-31 17:08:22 -0600
committerEduardo Chappa <chappa@washington.edu>2013-05-31 17:08:22 -0600
commit81e994d7907f850506ddc248f84761a54995e58c (patch)
tree3bc4993b48ddeec45dee51323437200ab975887c /pico/osdep/terminal.c
parent077522d7e058133f9de99d0d74481566b21c5a98 (diff)
downloadalpine-81e994d7907f850506ddc248f84761a54995e58c.tar.xz
* Fix not allow remote execution by adding PIPE_NOSHELL to the opening of a url by
a browser.
Diffstat (limited to 'pico/osdep/terminal.c')
-rw-r--r--pico/osdep/terminal.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/pico/osdep/terminal.c b/pico/osdep/terminal.c
index 72206c01..eb24d90e 100644
--- a/pico/osdep/terminal.c
+++ b/pico/osdep/terminal.c
@@ -26,6 +26,7 @@ static char rcsid[] = "$Id: terminal.c 921 2008-01-31 02:09:25Z hubert@u.washing
#include "../keydefs.h"
#include "../pico.h"
#include "../mode.h"
+#include "../edef.h"
#include "raw.h"
#include "color.h"
@@ -478,6 +479,12 @@ tinfoopen(void)
{
int row, col;
+ if (sendnow){
+ term.t_nrow = 23;
+ term.t_ncol = 80;
+ return 0;
+ }
+
/*
* determine the terminal's communication speed and decide
* if we need to do optimization ...
@@ -1253,6 +1260,12 @@ tcapopen(void)
{
int row, col;
+ if (sendnow){
+ term.t_nrow = 23;
+ term.t_ncol = 80;
+ return 0;
+ }
+
/*
* determine the terminal's communication speed and decide
* if we need to do optimization ...