Date: Fri, 11 Sep 2009 17:50:01 +0200 From: Ed Schouten <ed@80386.nl> To: ddk ddk <ddkprog@yahoo.com> Cc: swell.k@gmail.com, freebsd-current@FreeBSD.org, delphij@FreeBSD.ORG Subject: Re: vesa(4) and amd64 Message-ID: <20090911155001.GU2829@hoeg.nl> In-Reply-To: <85911.11390.qm@web59108.mail.re1.yahoo.com> References: <4AA9F5E4.6020305@icyb.net.ua> <85911.11390.qm@web59108.mail.re1.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--to1uSGBmQtEag2WO Content-Type: multipart/mixed; boundary="jl/VStiZFoZxPJyo" Content-Disposition: inline --jl/VStiZFoZxPJyo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * ddk ddk <ddkprog@yahoo.com> wrote: > I think this is a problem that has added a new terminal > teken by ed@ > =20 > becouse there is no problem on freebsd 7 where is no teken > where I can switch to any low mode=20 Hmmm... As far as I know, syscons reinitializes the terminal completely when switching resolutions. Does it crash? If so, are you capable of obtainining a backtrace? In my newcons branch I do have a very small patch for libteken that changes the resizing behaviour. In my new vt console driver I do resize the terminal emulator without reinitializing it completely, so I had to make set_winsize() a bit more robust. I think it's very unlikely that this patch fixes the issue you are seeing, but please do try. --=20 Ed Schouten <ed@80386.nl> WWW: http://80386.nl/ --jl/VStiZFoZxPJyo Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="teken.diff" Content-Transfer-Encoding: quoted-printable Index: sys/teken/teken.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/teken/teken.c (revision 197020) +++ sys/teken/teken.c (working copy) @@ -341,10 +341,7 @@ { =20 t->t_winsize =3D *p; - /* XXX: bounds checking with cursor/etc! */ - t->t_scrollreg.ts_begin =3D 0; - t->t_scrollreg.ts_end =3D t->t_winsize.tp_row; - t->t_originreg =3D t->t_scrollreg; + teken_subr_do_reset(t); } =20 /* Index: sys/teken/teken_subr.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/teken/teken_subr.h (revision 197020) +++ sys/teken/teken_subr.h (working copy) @@ -927,6 +927,9 @@ =20 t->t_curattr =3D t->t_defattr; t->t_cursor.tp_row =3D t->t_cursor.tp_col =3D 0; + t->t_scrollreg.ts_begin =3D 0; + t->t_scrollreg.ts_end =3D t->t_winsize.tp_row; + t->t_originreg =3D t->t_scrollreg; t->t_stateflags =3D TS_AUTOWRAP; =20 teken_scs_set(t, 0, teken_scs_us_ascii); --jl/VStiZFoZxPJyo-- --to1uSGBmQtEag2WO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkqqcakACgkQ52SDGA2eCwVh5wCfSV1IHXcZKBgTx3C3OiMIkXdn Dn0AnAu6rJlRmlnP27TkYDwRG62VX7yQ =IIsd -----END PGP SIGNATURE----- --to1uSGBmQtEag2WO--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090911155001.GU2829>