Commit bcfe498
committed
Guard ProgressPane for pseudo-TTYs
Again due to the fact that relying on Console.IsOutputRedirected (as
System.Console does for these APIs) causes bugs when pseudo-TTYs are
used (since the output is not redirected, but the APIs nonetheless can't
be used properly). So we ran into a problem where the value of CursorTop
and Console.BufferHeight were lies, and so we accidentally attempted to
set it numbers below zero. Guard everything.1 parent 79daea0 commit bcfe498
2 files changed
Lines changed: 41 additions & 48 deletions
Lines changed: 24 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1577 | 1577 | | |
1578 | 1578 | | |
1579 | 1579 | | |
1580 | | - | |
| 1580 | + | |
| 1581 | + | |
1581 | 1582 | | |
1582 | 1583 | | |
1583 | 1584 | | |
| |||
1796 | 1797 | | |
1797 | 1798 | | |
1798 | 1799 | | |
1799 | | - | |
| 1800 | + | |
1800 | 1801 | | |
1801 | 1802 | | |
1802 | 1803 | | |
1803 | 1804 | | |
1804 | 1805 | | |
1805 | | - | |
1806 | | - | |
1807 | | - | |
1808 | | - | |
1809 | 1806 | | |
1810 | | - | |
1811 | | - | |
1812 | | - | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
1813 | 1810 | | |
1814 | | - | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
1815 | 1815 | | |
1816 | | - | |
| 1816 | + | |
1817 | 1817 | | |
1818 | | - | |
1819 | | - | |
1820 | | - | |
1821 | 1818 | | |
1822 | 1819 | | |
1823 | | - | |
| 1820 | + | |
1824 | 1821 | | |
1825 | 1822 | | |
1826 | | - | |
| 1823 | + | |
1827 | 1824 | | |
1828 | | - | |
1829 | | - | |
1830 | | - | |
| 1825 | + | |
| 1826 | + | |
| 1827 | + | |
1831 | 1828 | | |
1832 | | - | |
1833 | | - | |
| 1829 | + | |
| 1830 | + | |
1834 | 1831 | | |
1835 | | - | |
| 1832 | + | |
1836 | 1833 | | |
1837 | 1834 | | |
1838 | 1835 | | |
1839 | | - | |
1840 | | - | |
| 1836 | + | |
| 1837 | + | |
1841 | 1838 | | |
1842 | 1839 | | |
1843 | | - | |
1844 | | - | |
1845 | | - | |
1846 | | - | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
1847 | 1843 | | |
1848 | 1844 | | |
1849 | 1845 | | |
| |||
Lines changed: 17 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
112 | 108 | | |
113 | | - | |
114 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
115 | 112 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
| 113 | + | |
| 114 | + | |
123 | 115 | | |
124 | | - | |
125 | 116 | | |
126 | 117 | | |
127 | | - | |
128 | | - | |
129 | 118 | | |
130 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
131 | 128 | | |
132 | 129 | | |
133 | 130 | | |
| |||
0 commit comments