Ross Mohn | 31 Aug 18:17 2015

[dvtm] TERMINFO problem with copymode

Over the weekend, I finally put in the hours to figure out why dvtm's
copymode works fine at home, but doesn't work at all on my servers at
the office. At work, I use shared UNIX hosts without root access. I
compile with
    PREFIX=~/local
so that I have my own compiled apps and customizations. My dvtm terminal
info files are installed under $PREFIX, and when I'm running inside dvtm
I have set
    TERMINFO=~/local/share/terminfo

The problem occurs when the child process of vt_forkpty() calls execvp()
to switch to the editor program. The environment variable TERM is set to
dvtm-256color, but TERMINFO is not set. The call to execvp() is
successful, but the editor crashes because it doesn't understand the
TERM (I tested with vis, vim, and less). I don't know the best way to
fix this so for myself, for now, I just hardcoded
    setenv("TERMINFO", "~/local/share/terminfo", 1);
after the setenv() line for TERM.

I thought through some actual solutions, but none seemed to fit well.
I'd love to hear some ideas!

Incidentally, the fprintf(stderr, ...) statement after execvp() doesn't
do anything because the child's stderr doesn't go anywhere meaningful.
The call to execvp() wasn't failing in the problem above, but I tested
forcing it to fail. I ended up opening a specific file, rather than
stderr, and had fprintf() write directly to it, but that's obviously not
a general solution. The fprintf() should either be fixed or removed.

Thanks -Ross
(Continue reading)

Pickfire | 30 Aug 15:19 2015
Picon

[st] Stuck in ISO 2022 locking escapes and Evil escape sequences


Hi, I found something that st display wrongly. I got it from
https://mosh.mit.edu/#techinfo

For ISO 2022 locking escapes:

    me <at> alarmpi ~> echo -e "\033(0"

    me <at> alarmpi ~> 

St does this:

    me <at> alarmpi ~> echo -e "\033(0"

    ␋┴▒┼ <at> ▒┌▒⎼└⎻␋ ·>

For Evil escape sequences:

    me <at> alarmpi ~> echo -e "xyz\033[2;2H\0314\0202\nhello"
    xŷz
    hello
    me <at> alarmpi ~>

St does this:

    me <at> alarmpi ~> echo -e "xyz\033[2;2H\0314\0202\nhello"
    x̂z
    hello
    me <at> alarmpi ~>

(Continue reading)

Christian Hesse | 21 Aug 16:39 2015
Picon

[PATCH 1/1] update version handling to work with tags or without git

From: Christian Hesse <mail <at> eworm.de>

Signed-off-by: Christian Hesse <mail <at> eworm.de>
---
 config.mk | 19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)

diff --git a/config.mk b/config.mk
index 85ddc17..5528064 100644
--- a/config.mk
+++ b/config.mk
 <at>  <at>  -3,13 +3,20  <at>  <at>  HAVE_ACL=0
 HAVE_SELINUX=0

 # vis version
-# we have no tags in git, so just use revision count an hash for now
-GITREVCOUNT = "$(shell git rev-list --count master 2>/dev/null)"
-GITHASH = "$(shell git log -1 --format="%h" 2>/dev/null)"
-ifeq (${GITREVCOUNT},)
-	VERSION = devel
-else
+# try to get a tag and hash first
+GITHASH = $(shell git log -1 --format='%h' 2>/dev/null)
+GITTAG = $(shell git describe --abbrev=0 --tags 2>/dev/null)
+ifneq ($(GITTAG),)
+	# we have a tag and revcount from there
+	GITREVCOUNT = "$(shell git rev-list --count ${GITTAG}.. 2>/dev/null)"
+	VERSION = "${GITTAG}.r${GITREVCOUNT}.g${GITHASH}"
+else ifneq ($(GITHASH),)
+	# we have no tags in git, so just use revision count an hash for now
(Continue reading)

Cattus Cerebrum | 20 Aug 20:46 2015
Picon

kodi

I am trying to run kodi (kodi.tv) under dwm (on debian linux).

 dwm is built from the current git master.

 When starting kodi in fullscreen mode, it completely intercepts all
the keyboard input, dwm does not get any input (e.g. I cannot switch
tags, etc.)  I have to exit kodi to be able to do anything.  When
running in a window mode, the window kodi creates is about 1/4 of the
screen, and cannot be resized.

I would appreciate any suggestions, maybe someone on the forum has a
similar setup.

 Thanks.

Sébastien Poher | 20 Aug 20:11 2015
Picon

[dwm] Update proposal for maximize patch

Hi,

Please, find attach a proposal of update for dwm 6.1 (git) for the
"maximize" patch.

It includes, in a single patch, the functions declarations, the functions
themselves as well as the config.def.h keys configuration (as I customize
them myself).

This is not a rewrite of the patch, just a compilation.

Regards,
--

-- 
Sébastien 'sogal' Poher
www.volted.net
Aidez-nous à défendre la liberté du logiciel: 
http://www.fsf.org/register_form?referrer=11902
Pickfire | 18 Aug 14:28 2015
Picon

[st] Compilation error after commit dc33d1d

st build options:
CFLAGS   = -g -std=c99 -pedantic -Wall -Wvariadic-macros -Os -I.
-I/usr/include -I/usr/X11R6/include -I/usr/include/freetype2
-I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2
-I/usr/include/libpng16 -I/usr/include/harfbuzz
-I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz
-DVERSION="0.6" -D_XOPEN_SOURCE=600
LDFLAGS  = -g -L/usr/lib -lc -L/usr/X11R6/lib -lm -lrt -lX11 -lutil
-lXext -lXft -lfontconfig -lfreetype  -lfreetype
CC       = cc
CC st.c
st.c: In function ‘xinit’:
st.c:3487:37: error: ‘mouseshape’ undeclared (first use in this
function)
  cursor = XCreateFontCursor(xw.dpy, mouseshape);
                                     ^
st.c:3487:37: note: each undeclared identifier is reported only once for
each function it appears in
st.c:3490:45: error: ‘mousefg’ undeclared (first use in this function)
  if (XParseColor(xw.dpy, xw.cmap, colorname[mousefg], &xmousefg) == 0)
{
                                             ^
st.c:3496:45: error: ‘mousebg’ undeclared (first use in this function)
  if (XParseColor(xw.dpy, xw.cmap, colorname[mousebg], &xmousebg) == 0)
{
                                             ^
Makefile:21: recipe for target 'st.o' failed
make: *** [st.o] Error 1

--

-- 
(Continue reading)

Gabriel Pérez-Cerezo | 18 Aug 12:00 2015
Picon

Torified surf is unstable

Hello,

I run surf  through tor using 'torify  surf'. If I don't  add the '-i'
option, it segfaults  when searching on Duckduckgo. Even if  I add the
'-i' flag, it crashes after some time with messages like
"*** Error in `surf': free(): invalid pointer: 0x095ca248 ***"
or a  segmentation fault  and often  reaches 100%  CPU usage.  Can you
replicate this situation?

The command prints
[Aug  18  11:55:55]  WARNING  torsocks[14305]:  [syscall]  Unsupported
syscall number 240.  Denying the call (in tsocks_syscall() at syscall.c:165)
to STDOUT.

The output of uname -a is Linux gilbert 3.16.0-4-686-pae #1 SMP Debian
3.16.7-ckt11-1+deb8u3 (2015-08-04)  i686 GNU/Linux  on my  system, I'm
running  the  latest (git)  version  of  surf with  the  searchengines
patch.

Best,

Gabriel Pérez-Cerezo

--

-- 
Gabriel Pérez-Cerezo Flohr .------------------------------------------        
GPG Key: BB09BA34D353EC69 / Email is like a postcard, anyone can read 
Website: http://gpcf.eu  / it. Please use the GPG Key to encrypt your 
Email: gabriel <at> gpcf.eu  / emails (tutorial: emailselfdefense.fsf.org).

(Continue reading)

Askar Safin | 18 Aug 11:01 2015
Picon

[dvtm] dvtm seems to be only terminal not affected by GNU/Linux ecosystem bug I found

Hi. I found a bug which I call "GNU/Linux ecosystem bug", because there is no single software where this bug
is located. Steps to reproduce:
1. Open a terminal. This can be X terminal emulator, such as konsole (sic!) or xterm. And this can be terminal
multiplexer such as dvtm or tmux
2. Type the following command to the terminal:

for ((I = 1; I <= 100; ++I)) { echo $I; }; CURSES

CURSES should be replaced with some curses-like program, such as mc, less, dvtm, tmux. If you start some
multiplexer in itself, you probably
need to force this operation. For example, in case of tmux, write "TMUX="" tmux" instead of plain "tmux". If
you started tmux in itself, then Ctrl-b will
send commands to outer tmux and Ctrl-b Ctrl-b to inner tmux. Same for dvtm

3. Make the (outer) terminal smaller in vertical direction. If this is X terminal emulator, you can just
make it smaller using mouse. If this is multiplexer,
then open new pane on the top or on the bottom
4. Exit from (inner) curses-like app

Now I see something like this:

82
83
[exited]
34  2015-07-09 19:38:32  ~$ _

But I expected to see:

99
100
(Continue reading)

Quolick | 9 Aug 21:48 2015

[quolick <at> conus.info: Re: [hackers] [st] set font]

On Sun, Aug 09, 2015 at 10:19:56PM +0300, Ilya S wrote:
> :/
> 
> config.h
> 
> static char font[] = "Liberation
> Mono:pixelsize=12:antialias=false:autohint=false";

Exactly! This is what I wrote:

static char font[] = "terminus:pixelsize=16:antialias=false:autohint=false";

Seems fine for Latin characters, but cyrillic ones are not terminus.
Are cyrillic font must be set somehow specially?
Visually, cyrillic characters are from Liberation font.

Christoph Lohmann | 9 Aug 21:41 2015
Picon

Filtering HTML attachments

Greetings.

In  our mission towards a more suckless world a small step to discuss is
to filter HTML attachments to our mailinglists.

Should attachments be stripped or offenders be blocked and warned?
Are there still people that are not able to remove HTML from their MUA?

Sincerely,

Christoph Lohmann

Ross Mohn | 8 Aug 20:39 2015

[dvtm] Commands document, one page PDF

I've finished a one page document of all the default commands in dvtm
with their default key bindings. A4 and Letter formats are available at
http://waxandwane.org/dvtm.html. The commands are organized into the
following categories:

  * Windows/Client Commands
  * Layout Commands
  * Copy & Paste Commands
  * Tag Commands
  * Mouse Commands
  * Application and Miscellaneous Commands

The document is current as of dvtm 0.14 plus all updates through
2015-07-31. All comments and corrections welcome and more documentation
is in development.

-Ross


Gmane