X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=index.cgi;h=3e3c8d5a6f7c92b337cae42438b072426666ab93;hb=b8fab7a68804d284a4335a2e965c5bc95a67e81d;hp=f70abc72105569c80d916e67421d7e5ef098f7fa;hpb=3ae2a42f3821c90b70e03150491413a7ff5116a7;p=vpaste diff --git a/index.cgi b/index.cgi index f70abc7..3e3c8d5 100755 --- a/index.cgi +++ b/index.cgi @@ -63,20 +63,21 @@ function do_print { sed "1a$(get_modeline)" "$input" > "$tmp" # - I have some plugins in ~/.vim - # - Run ex in screen to trick it into thinking that it + # - Run ex in a pty to trick it into thinking that it # has a real terminal, note that we also have to set # term=xterm-256color in vimrc HOME=/home/andy \ - screen -D -m ex -nXZ -i NONE -u vimrc \ + /home/andy/bin/pty ex -nXZ -i NONE -u vimrc \ '+set bexpr= fde= fdt= fex= inde= inex= key= pa= pexpr' \ - '+set iconstring= ruf= stl= tal= titlestring=' \ + '+set iconstring= ruf= stl= tal=' \ + "+set titlestring=$1\ -\ vpaste.net" \ '+set noml' \ '+2d|'$trim \ '+%s/\r//g' \ '+TOhtml' \ "+sav! $output" \ '+qall!' \ - "$tmp" + "$tmp" /dev/null 2>&1 header text/html cat "$output" @@ -122,6 +123,8 @@ cat - < vpaste.net - Vim based pastebin + +