From owner-freebsd-current@FreeBSD.ORG Fri Sep 11 15:50:03 2009 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4736B1065670; Fri, 11 Sep 2009 15:50:03 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:7b8:613:100::211]) by mx1.freebsd.org (Postfix) with ESMTP id DC98B8FC12; Fri, 11 Sep 2009 15:50:02 +0000 (UTC) Received: by palm.hoeg.nl (Postfix, from userid 1000) id AC82A1CC94; Fri, 11 Sep 2009 17:50:01 +0200 (CEST) Date: Fri, 11 Sep 2009 17:50:01 +0200 From: Ed Schouten To: ddk ddk Message-ID: <20090911155001.GU2829@hoeg.nl> References: <4AA9F5E4.6020305@icyb.net.ua> <85911.11390.qm@web59108.mail.re1.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="to1uSGBmQtEag2WO" Content-Disposition: inline In-Reply-To: <85911.11390.qm@web59108.mail.re1.yahoo.com> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: swell.k@gmail.com, freebsd-current@FreeBSD.org, delphij@FreeBSD.ORG Subject: Re: vesa(4) and amd64 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Sep 2009 15:50:03 -0000 --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 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 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--