How should one draw in a staff a chord that contains both a note and the same note with an alteration?
For example: How would you draw in a staff a chord that contains both C2 and C#2?
Addition: Tim's answer provides a good workaround: simply draw the C# as a Db. However, now we have a new weird case: What if the chord contains C, C# and D?
Edit for context: This weird requirement came from a very specific need: I was working on a software that detected pressed keys in a piano and generated a visual staff with the pressed notes. As users could press any combination of keys, I was researching ways to draw anything in the staff, even if it doesn't make sense musically.