Ignore:
Timestamp:
11/03/2007 05:27:59 PM (19 years ago)
Author:
David Owen <dsowen@…>
branch-nick:
tui
revision id:
dsowen@fugue88.ws-20071103172759-aacwcew0kzliob1n
Message:

Grid now uses display strings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/grid/test.lisp

    r22 r26  
    1818  (cond
    1919    ((= row 0)
    20      (string (aref "*ABCDEFGHI" column)))
     20     (concatenate 'string "`B`U " (string (aref "*ABCDEFGHI" column)) " `u`b"))
    2121    ((= column 0)
    22      (format nil "~A" row))
     22     (format nil " `B~A`b " row))
    2323    (t
    24      (format nil "~A,~A" row column))))
     24     (format nil (if (= row column 2) "`R~A,~A`r" "~A,~A") row column))))
     25
     26(defmethod uses-display-strings ((gd test) row column)
     27  t)
    2528
    2629
     
    3538    (with-screen (screen)
    3639      (clear screen)
    37       (with-der-window (window screen 5 17 0 0)
     40      (with-der-window (window screen 5 16 0 0)
    3841        (let ((grid (make-grid window data widths :header-columns 1 :header-rows 1)))
    3942          (flet ((try (i)
Note: See TracChangeset for help on using the changeset viewer.