Bug#594817: console-setup should configure the width&height of the console
Hello,
Here is a patch proposition.
Samuel
Index: setupcon
===================================================================
--- setupcon (révision 64607)
+++ setupcon (copie de travail)
@@ -318,6 +318,18 @@
fi
done
fi
+
+ STTY=""
+ [ -z "$SCREEN_WIDTH" ] || STTY="$STTY cols $SCREEN_WIDTH"
+ [ -z "$SCREEN_HEIGHT" ] || STTY="$STTY rows $SCREEN_HEIGHT"
+
+ if [ -n "$STTY" ]
+ then
+ for console in $ACTIVE_CONSOLES; do
+ [ -r $console ] || continue
+ stty $STTY < $console
+ done
+ fi
fi
#-----------------------#
Index: config
===================================================================
--- config (révision 64607)
+++ config (copie de travail)
@@ -37,3 +37,9 @@
# FONT_MAP=/usr/share/consoletrans/lat9u.uni
# CONSOLE_MAP=/usr/local/share/consoletrans/my_special_encoding.acm
+# You can also specify a screen size that setupcon will enforce. This can not
+# exceed what the current screen resolution can display according to the size of
+# the loaded font.
+#
+# SCREEN_WIDTH=80
+# SCREEN_HEIGHT=25
Reply to: