Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/actions/spelling/expect/expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,7 @@
inbox
inclusivity
INCONTEXT
INDEXID
INFOEX
inheritcursor
INITCOMMONCONTROLSEX
Expand Down Expand Up @@ -908,6 +909,7 @@
LOADONCALL
LOBYTE
localappdata
LOCATIONCHANGE
locsrc
Loewen
LOGBRUSH
Expand Down Expand Up @@ -1033,6 +1035,7 @@
MOUSEFIRST
MOUSEHWHEEL
MOVESTART
msaa
msb
msbuildcache
msctls
Expand Down Expand Up @@ -1970,11 +1973,11 @@
writeback
WRITECONSOLE
WRITECONSOLEINPUT
WRITECONSOLEOUTPUT

Check warning

Code scanning / check-spelling

Ignored Expect Variant Warning

WRL is ignored by check-spelling because another more general variant is also in expect. (ignored-expect-variant)
WRITECONSOLEOUTPUTSTRING
wrkstr
WRL
wrl
WRL
wrp
WRunoff
WSLENV
Expand Down
8 changes: 8 additions & 0 deletions dep/Console/ntcsrdll.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,17 @@ Licensed under the MIT license.

#include <ntcsrmsg.h>

#ifdef __cplusplus
extern "C" {
#endif

NTSTATUS CsrClientCallServer(
PCSR_API_MSG m,
PCSR_CAPTURE_HEADER CaptureBuffer OPTIONAL,
ULONG ApiNumber,
ULONG ArgLength
);

#ifdef __cplusplus
}
#endif
8 changes: 8 additions & 0 deletions dep/Console/ntlpcapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ Licensed under the MIT license.

#pragma once

#ifdef __cplusplus
extern "C" {
#endif

#define OB_FILE_OBJECT_TYPE 1

typedef struct _PORT_MESSAGE {
Expand Down Expand Up @@ -124,3 +128,7 @@ NTSTATUS NtAlpcQueryInformationMessage(
ULONG Length,
PULONG ReturnLength
);

#ifdef __cplusplus
}
#endif
12 changes: 0 additions & 12 deletions src/buffer/out/cursor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// - ulSize - The height of the cursor within this buffer
Cursor::Cursor(const ULONG ulSize, TextBuffer& parentBuffer) noexcept :
_parentBuffer{ parentBuffer },
_fHasMoved(false),
_fIsVisible(true),
_fIsOn(true),
_fIsDouble(false),
Expand All @@ -35,11 +34,6 @@ til::point Cursor::GetPosition() const noexcept
return _cPosition;
}

bool Cursor::HasMoved() const noexcept
{
return _fHasMoved;
}

bool Cursor::IsVisible() const noexcept
{
return _fIsVisible;
Expand Down Expand Up @@ -75,11 +69,6 @@ ULONG Cursor::GetSize() const noexcept
return _ulSize;
}

void Cursor::SetHasMoved(const bool fHasMoved) noexcept
{
_fHasMoved = fHasMoved;
}

void Cursor::SetIsVisible(const bool fIsVisible) noexcept
{
_fIsVisible = fIsVisible;
Expand Down Expand Up @@ -249,7 +238,6 @@ void Cursor::CopyProperties(const Cursor& OtherCursor) noexcept
// We shouldn't copy the position as it will be already rearranged by the resize operation.
//_cPosition = pOtherCursor->_cPosition;

_fHasMoved = OtherCursor._fHasMoved;
_fIsVisible = OtherCursor._fIsVisible;
_fIsOn = OtherCursor._fIsOn;
_fIsDouble = OtherCursor._fIsDouble;
Expand Down
3 changes: 0 additions & 3 deletions src/buffer/out/cursor.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ class Cursor final
Cursor(Cursor&&) = default;
Cursor& operator=(Cursor&&) & = delete;

bool HasMoved() const noexcept;
bool IsVisible() const noexcept;
bool IsOn() const noexcept;
bool IsBlinkingAllowed() const noexcept;
Expand All @@ -54,7 +53,6 @@ class Cursor final
bool IsDeferDrawing() noexcept;
void EndDeferDrawing() noexcept;

void SetHasMoved(const bool fHasMoved) noexcept;
void SetIsVisible(const bool fIsVisible) noexcept;
void SetIsOn(const bool fIsOn) noexcept;
void SetBlinkingAllowed(const bool fIsOn) noexcept;
Expand Down Expand Up @@ -90,7 +88,6 @@ class Cursor final

til::point _cPosition; // current position on screen (in screen buffer coords).

bool _fHasMoved;
bool _fIsVisible; // whether cursor is visible (set only through the API)
bool _fIsOn; // whether blinking cursor is on or not
bool _fIsDouble; // whether the cursor size should be doubled
Expand Down
1 change: 0 additions & 1 deletion src/cascadia/TerminalCore/Terminal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ class Microsoft::Terminal::Core::Terminal final :
void UseMainScreenBuffer() override;

bool IsVtInputEnabled() const noexcept override;
void NotifyAccessibilityChange(const til::rect& changedRect) noexcept override;
void NotifyBufferRotation(const int delta) override;
void NotifyShellIntegrationMark() override;

Expand Down
5 changes: 0 additions & 5 deletions src/cascadia/TerminalCore/TerminalApi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,11 +347,6 @@ bool Terminal::IsVtInputEnabled() const noexcept
return false;
}

void Terminal::NotifyAccessibilityChange(const til::rect& /*changedRect*/) noexcept
{
// This is only needed in conhost. Terminal handles accessibility in another way.
}

void Terminal::InvokeCompletions(std::wstring_view menuJson, unsigned int replaceLength)
{
if (_pfnCompletionsChanged)
Expand Down
Loading
Loading